Skip to content

[AzPS] Remediate existing GUID / sensitive identifier violations and add CI validation to prevent reintroduction #29951

Description

@Alex-AZPS

Description

Background

During the Docs Sync discussion, we identified recurring documentation updates related to GUID and sensitive identifier compliance.

Microsoft guidance:

The issue currently requires repeated downstream documentation fixes. However, the violations continue to reappear because the source content is not corrected and there is no validation preventing new violations from being introduced.

Evidence

The Docs team has repeatedly submitted SFI remediation pull requests to address the same class of issues.

Historical examples:

As discussed, fixing generated markdown files is only a temporary mitigation because future generations can overwrite those fixes.

Problem Statement

GUIDs, subscription IDs, tenant IDs, object IDs, and other sensitive identifiers are being propagated into documentation from upstream source content.

This results in:

  • Recurring SFI remediation work
  • Repeated documentation cleanup PRs
  • Additional operational overhead for Docs and Engineering teams
  • Compliance issues appearing release after release

Proposed Solution

Phase 1: One-time Source Remediation

Perform a repository-wide audit and remediate existing violations at the source.

Review and clean up identifiers in:

  • Source code examples
  • Help content
  • Test assets
  • Documentation source files
  • Generated content inputs
  • Command metadata

Replace non-compliant values with approved identifiers according to Microsoft guidance.

Phase 2: Add CI Guardrails

Introduce automated validation in Azure PowerShell (and other applicable repositories) to detect non-compliant identifiers during pull request validation and CI builds.

Validation should:

  • Run on every PR
  • Run in official CI pipelines
  • Detect unapproved GUIDs and sensitive identifiers
  • Fail validation when violations are detected
  • Provide actionable remediation guidance

The goal is to ensure that developers cannot merge PRs containing non-compliant identifiers and that the issue is prevented before documentation generation.

Expected Outcome

  • Existing violations are removed from source.
  • Documentation generation no longer reintroduces known violations.
  • Future violations are blocked during PR validation.
  • Recurring SFI cleanup effort is significantly reduced.

References

Issue script & Debug output

Doc issue

Environment data

PS7.0

Module versions

Az

Error output

Metadata

Metadata

Assignees

No one assigned

    Labels

    Doc - ReferencebugThis issue requires a change to an existing behavior in the product in order to be resolved.feature-requestThis issue requires a new behavior in the product in order be resolved.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions