Skip to content

Register azure-cli-preview moniker for AzClips public preview (script-driven successor to #6153) - #6158

Draft
DanielMicrosoft wants to merge 4 commits into
MicrosoftDocs:mainfrom
DanielMicrosoft:register-azure-cli-preview-moniker-2
Draft

Register azure-cli-preview moniker for AzClips public preview (script-driven successor to #6153)#6158
DanielMicrosoft wants to merge 4 commits into
MicrosoftDocs:mainfrom
DanielMicrosoft:register-azure-cli-preview-moniker-2

Conversation

@DanielMicrosoft

Copy link
Copy Markdown

Registers the azure-cli-preview moniker for AzClips public preview and populates docs-ref-autogen/preview-version/latest/. Successor to #6153 — same tip content, now demonstrably reproducible from a script.

What the AzClips team runs

Content commit was produced by the sync shim in Azure/azclips#798. Exact invocation from the AzClips repo root:

pwsh -File build/Sync-AzClipsCliDocs.ps1 -Force -NoBuild -OutputManifest artifacts/manifest-force.json

Config file the shim reads (build/cli-docs-sync.config.json):

{
  "moniker": "azure-cli-preview",
  "versionFolder": "preview-version",
  "targetRepoPath": "../azure-docs-cli",
  "sourceRepoUrl": "https://github.com/Azure/azclips",
  "sourceBranch": "main",
  "exportProject": "tools/Help/Azclips.Cli.Export/Azclips.Cli.Export.csproj",
  "cli2yamlPackage": "CLI2Yaml",
  "cli2yamlFeed": "https://apidrop.pkgs.visualstudio.com/_packaging/ReferenceAutomation/nuget/v3/index.json"
}

Faithful reproduction — nothing changed vs. #6153

Running the shim against this branch reports No changes to sync. The script-generated output is byte-identical to the hand-crafted c5bee8e4fd from #6153. This is a positive signal: the shim is a faithful implementation of what was manually authored during exploration.

One-time setup commits (NOT reproducible by the shim yet)

The following config bits are moniker-onboarding one-timers. The shim does not author these — a docs.ms desk conversation created them. They're carried over from #6153:

Commit What it touches
bdde714 .openpublishing.publish.config.json, docfx.json, docs-ref-autogen/preview-version/latest/TOC.yml — register the new moniker
1767a77 docfx.json — register azure-cli-preview in docfx groups/versions
eaecfd5 Removes a broken service-page/azure-cli.yml (unresolvable xrefs; pending upstream)

Open question for reviewers: are those three commits mergeable into main today with zero consequences to the production docs experience? The moniker won't be linked from any live TOC unless docs.ms explicitly wires it up, so a merge of the config alone should be inert — but the AzClips team would like a docs.ms sanity-check before we optimize the process (e.g., splitting registration into its own tiny PR that lands independently of content refreshes).

Content commit

Commit What it does
c5bee8e Populates docs-ref-autogen/preview-version/latest/**/*.yml — 11 top-level verb pages + subgroups + TOC.yml + reference-index.yml. Verified byte-identical to today's script output above.

Blockers / caveats

  • BL1 (CLI2Yaml --sourceRepo / --editBranch): resolved upstream in CLI2Yaml 20260827.1.0 — this PR uses that version, editLink: points at https://github.com/Azure/azclips/blob/main/… as expected.
  • BL2 (docs.ms bot-auth for automated PR-open): still open. This PR was authored manually; a future -Push mode + CI workflow both wait on this.
  • The service-page/ cleanup (commit eaecfd5) is a temporary workaround — once service_name.json on the AzClips side maps verbs to real service pages, the shim will re-enable service-page output (-SkipServicePages:$false).

Related

Adds the azure-cli-preview moniker to the docset config so content published under docs-ref-autogen/preview-version/latest can be built and rendered on Learn.

The moniker itself is already registered in the docs.ms central store (Platform: bash, Family: Azure CLI, Product: Preview) with Live=false and Prerelease=true; it will remain hidden from the dropdown until content is staged and we request Live=true.

Includes a minimal placeholder TOC.yml under docs-ref-autogen/preview-version/latest/ so docfx does not fail on the missing src folder. Actual content will land via subsequent PRs from the AzClips sync pipeline.

Follows the folder-naming convention used by Latest-version/latest and LTS-version/latest per docs.ms guidance.
Runs AzClips's cli-export → CLI2Yaml 20260827.1.0 → SDP YAML pipeline against the current tip of Azure/azclips main, producing 20 reference files covering agent, config, deployment, disk, extension, group, identity, msgraph, profile, and vm verbs (plus TOC, reference-index, service-page).

editLink values point at github.com/Azure/azclips/blob/main/… via the --sourceRepo and --editBranch options landed in CLI2Yaml PR 1213094.

Content is a snapshot for review preview only; production content will be pushed by a subsequent AzClips sync pipeline. Moniker remains Live=false in the central store, so this content is invisible to customers until we request the flip.
Adds the missing azure-cli-preview entries to the 'groups' and 'versions' maps in docfx.json. Without these, the build system did not emit a ?view=azure-cli-preview parameter on preview-version URLs, causing 10 publish-url-conflict warnings against Latest/LTS files (e.g. both docs-ref-autogen/preview-version/latest/vm.yml and docs-ref-autogen/Latest-version/latest/vm.yml were claiming /cli/azure/vm).

After this change, preview-version pages should publish to /cli/azure/<cmd>?view=azure-cli-preview, in line with the other monikers already registered.
The single preview-version/latest/service-page/azure-cli.yml page was emitting bare command names (agent, config, vm, ...) instead of az_-prefixed xrefs, producing 11 xref-not-found warnings against non-existent uids. It also only covered a catch-all 'azure-cli' service rather than the ~200 per-Azure-service pages that Latest/LTS carry.

Removing it eliminates the warnings without any user-visible loss (reference-index and command TOC still render normally). Proper service-page generation will be re-enabled once the upstream azclips-side inputs (service_name.json + CLI2Yaml xref formatting) are fixed. Tracked in Azure/CLIPS as a follow-up sub-issue of MicrosoftDocs#588.
@learn-build-service-prod

Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit eaecfd5:

⚠️ Validation status: warnings

File Status Preview URL Details
docs-ref-autogen/preview-version/latest/TOC.yml ⚠️Warning View (azure-cli-preview) Details
.openpublishing.publish.config.json ✅Succeeded
docfx.json ✅Succeeded
docs-ref-autogen/preview-version/latest/agent.yml ✅Succeeded View (azure-cli-preview)
docs-ref-autogen/preview-version/latest/agent/tool.yml ✅Succeeded View (azure-cli-preview)
docs-ref-autogen/preview-version/latest/agent/tool/resource.yml ✅Succeeded View (azure-cli-preview)
docs-ref-autogen/preview-version/latest/config.yml ✅Succeeded View (azure-cli-preview)
docs-ref-autogen/preview-version/latest/deployment.yml ✅Succeeded View (azure-cli-preview)
docs-ref-autogen/preview-version/latest/deployment/group.yml ✅Succeeded View (azure-cli-preview)
docs-ref-autogen/preview-version/latest/disk.yml ✅Succeeded View (azure-cli-preview)
docs-ref-autogen/preview-version/latest/extension.yml ✅Succeeded View (azure-cli-preview)
docs-ref-autogen/preview-version/latest/group.yml ✅Succeeded View (azure-cli-preview)
docs-ref-autogen/preview-version/latest/identity.yml ✅Succeeded View (azure-cli-preview)
docs-ref-autogen/preview-version/latest/msgraph.yml ✅Succeeded View (azure-cli-preview)
docs-ref-autogen/preview-version/latest/msgraph/app.yml ✅Succeeded View (azure-cli-preview)
docs-ref-autogen/preview-version/latest/msgraph/group.yml ✅Succeeded View (azure-cli-preview)
docs-ref-autogen/preview-version/latest/msgraph/group/member.yml ✅Succeeded View (azure-cli-preview)
docs-ref-autogen/preview-version/latest/msgraph/user.yml ✅Succeeded View (azure-cli-preview)
docs-ref-autogen/preview-version/latest/profile.yml ✅Succeeded View (azure-cli-preview)
docs-ref-autogen/preview-version/latest/reference-index.yml ✅Succeeded View (azure-cli-preview)
docs-ref-autogen/preview-version/latest/vm.yml ✅Succeeded View (azure-cli-preview)

docs-ref-autogen/preview-version/latest/TOC.yml

  • Line 8, Column 10: [Warning: xref-not-found - See documentation] Cross reference not found: 'sp-azure-cli'.

For more details, please refer to the build report.

Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

DanielMicrosoft added a commit to DanielMicrosoft/azure-docs-powershell that referenced this pull request Sep 7, 2026
…e, feedback_system

docs.ms Learn build succeeded for azps-100.0.0 content but produced no preview URLs (`Publish Files` empty, `% Files Skipped Publishing: 100.000%`). Comparing with MicrosoftDocs/azure-docs-cli#6158 (which does emit preview URLs) surfaced that `docfx.json` needed per-moniker entries the same way `mapping/monikerMapping.json` did. Mirrors the azps-16.3.0 shape (three content entries + one resource + versions dest + ms.date + feedback_system).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant