Skip to content

Register azure-cli-preview moniker for AzClips public preview - #6153

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

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

Conversation

@DanielMicrosoft

@DanielMicrosoft DanielMicrosoft commented Sep 3, 2026

Copy link
Copy Markdown

Registers the �zure-cli-preview moniker in the docset config, populates docs-ref-autogen/preview-version/latest/ with an initial snapshot of AzClips CLI reference content so the moniker is renderable on the docs.ms preview build.

Context

Part of onboarding the upcoming public preview of the next-generation Azure CLI (product-visible label Azure CLI 100.0.0 (Public Preview)). Paired with a matching moniker request against MicrosoftDocs/azure-docs-powershell for the PowerShell side.

Moniker central-store state

The moniker itself is already registered in the docs.ms central moniker store with:

  • Platform bash / Family Azure CLI / Product Preview
  • Moniker in URL azure-cli-preview
  • Friendly name above TOC Azure CLI 100.0.0 (Public Preview)
  • Live false (keeps the moniker off the version dropdown until content is ready)
  • Prerelease true (excluded from default routing)
  • Order 1 (bottom placement per opt-in positioning)

We will request a Live=true flip once the docs.ms build validates the shape. No customer-visible change at merge time.

Changes

  • .openpublishing.publish.config.json — append "azure-cli-preview" to moniker_ranges.
  • docfx.json — add two group/src route entries mirroring the azure-cli-latest pattern, pointing at docs-ref-autogen/preview-version/latest.
  • docs-ref-autogen/preview-version/latest/** — 20 SDP YAML files (initial AzClips CLI reference snapshot). Covers agent, config, deployment, disk, extension, group, identity, msgraph, profile, and vm verbs plus TOC.yml, reference-index.yml, and service-page/azure-cli.yml.

How the content was generated

Ran AzClips's Azclips.Cli.Export (produces snake_case JSON per top-level verb) → CLI2Yaml 20260827.1.0 (SDP YAML transformer, prod feed) against the current tip of Azure/azclips:main. Command:

dotnet CLI2Yaml.dll -c <cli-export-output> -e <empty> -o docs-ref-autogen/preview-version --config .docsreference.azclips.json --commitMap doc_commit_map.json --extensionIndex index.json --serviceMapping service_name.json --sourceRepo https://github.com/Azure/azclips --editBranch main

--sourceRepo and --editBranch are the options landed in CLI2Yaml PR 1213094, which route every command's editLink at github.com/Azure/azclips/blob/main/… instead of the default azure-cli.

Once the AzClips sync pipeline is wired for production (in-flight), this content will refresh automatically on release cadence — matching how azclibot refreshes Latest-version/latest/ today.

Naming rationale

Folder path docs-ref-autogen/preview-version/latest/ follows the convention used by Latest-version/latest/ and LTS-version/latest/ per docs.ms guidance. Outer folder is a version-channel label; inner latest matches the CLI2Yaml internal moniker.

The URL slug azure-cli-preview is channel-shaped (matches the pattern of azure-cli-latest and azure-cli-lts); version numbers live in the friendly name only and roll forward in place as preview releases ship (100.0.0100.1.0 → ...).

Follow-up (not in this PR)

  • Conceptual routes under docs-ref-conceptual/ — added once conceptual content is ready to migrate.
  • JoinTOCPlugin entry — added alongside the conceptual routes.
  • Automated content refresh pipeline (AzClips-side).

Happy to iterate on any of the above — this is a Draft PR.

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.
@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 bdde714:

⚠️ Validation status: warnings

File Status Preview URL Details
⚠️Warning Details
.openpublishing.publish.config.json ✅Succeeded
docfx.json ✅Succeeded
docs-ref-autogen/preview-version/latest/TOC.yml ✅Succeeded

  • Line 0, Column 0: [Warning: redirected-file-not-removed - See documentation] Redirected file 'docs-ref-autogen/Latest-version/latest/service-page/Azure Front Door.yml' are still in the repo. After adding a file to the redirection JSON file, you must delete the original file from the repo.
  • Line 0, Column 0: [Warning: redirected-file-not-removed - See documentation] Redirected file 'docs-ref-autogen/Latest-version/latest/service-page/Azure Migrate.yml' are still in the repo. After adding a file to the redirection JSON file, you must delete the original file from the repo.
  • Line 0, Column 0: [Warning: publish-url-conflict] Two or more files publish to the same url '/cli/azure/command/toc.json': 'docs-ref-autogen/LTS-version/2017-03-09-profile/TOC.yml', 'docs-ref-autogen/LTS-version/2018-03-01-hybrid/TOC.yml', 'docs-ref-autogen/LTS-version/2019-03-01-hybrid/TOC.yml', 'docs-ref-autogen/LTS-version/2020-09-01-hybrid/TOC.yml', 'docs-ref-autogen/LTS-version/latest/TOC.yml'....

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.

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.
@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 c5bee8e:

⚠️ Validation status: warnings

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

  • Line 0, Column 0: [Warning: redirected-file-not-removed - See documentation] Redirected file 'docs-ref-autogen/Latest-version/latest/service-page/Azure Front Door.yml' are still in the repo. After adding a file to the redirection JSON file, you must delete the original file from the repo.
  • Line 0, Column 0: [Warning: redirected-file-not-removed - See documentation] Redirected file 'docs-ref-autogen/Latest-version/latest/service-page/Azure Migrate.yml' are still in the repo. After adding a file to the redirection JSON file, you must delete the original file from the repo.
  • Line 0, Column 0: [Warning: publish-url-conflict] Two or more files publish to the same url '/cli/azure/vm': 'docs-ref-autogen/Latest-version/latest/vm.yml', 'docs-ref-autogen/preview-version/latest/vm.yml'.
  • Line 0, Column 0: [Warning: publish-url-conflict] Two or more files publish to the same url '/cli/azure/config': 'docs-ref-autogen/LTS-version/latest/config.yml', 'docs-ref-autogen/preview-version/latest/config.yml'.
  • Line 0, Column 0: [Warning: publish-url-conflict] Two or more files publish to the same url '/cli/azure/extension': 'docs-ref-autogen/LTS-version/latest/extension.yml', 'docs-ref-autogen/preview-version/latest/extension.yml'.
  • Line 0, Column 0: [Warning: publish-url-conflict] Two or more files publish to the same url '/cli/azure/disk': 'docs-ref-autogen/LTS-version/latest/disk.yml', 'docs-ref-autogen/preview-version/latest/disk.yml'.
  • Line 0, Column 0: [Warning: publish-url-conflict] Two or more files publish to the same url '/cli/azure/identity': 'docs-ref-autogen/LTS-version/2018-03-01-hybrid/identity.yml', 'docs-ref-autogen/preview-version/latest/identity.yml'.
  • Line 0, Column 0: [Warning: publish-url-conflict] Two or more files publish to the same url '/cli/azure/group': 'docs-ref-autogen/LTS-version/latest/group.yml', 'docs-ref-autogen/preview-version/latest/group.yml'.
  • Line 0, Column 0: [Warning: publish-url-conflict] Two or more files publish to the same url '/cli/azure/reference-index': 'docs-ref-autogen/LTS-version/2019-03-01-hybrid/reference-index.yml', 'docs-ref-autogen/preview-version/latest/reference-index.yml'.
  • Line 0, Column 0: [Warning: publish-url-conflict] Two or more files publish to the same url '/cli/azure/deployment': 'docs-ref-autogen/LTS-version/latest/deployment.yml', 'docs-ref-autogen/preview-version/latest/deployment.yml'.
  • Line 0, Column 0: [Warning: publish-url-conflict] Two or more files publish to the same url '/cli/azure/deployment/group': 'docs-ref-autogen/LTS-version/2019-03-01-hybrid/deployment/group.yml', 'docs-ref-autogen/preview-version/latest/deployment/group.yml'.
  • Line 0, Column 0: [Warning: publish-url-conflict] Two or more files publish to the same url '/cli/azure/command/toc.json': 'docs-ref-autogen/LTS-version/2017-03-09-profile/TOC.yml', 'docs-ref-autogen/LTS-version/2018-03-01-hybrid/TOC.yml', 'docs-ref-autogen/LTS-version/2019-03-01-hybrid/TOC.yml', 'docs-ref-autogen/LTS-version/2020-09-01-hybrid/TOC.yml', 'docs-ref-autogen/LTS-version/latest/TOC.yml'....

docs-ref-autogen/preview-version/latest/service-page/azure-cli.yml

  • Line 5, Column 3: [Warning: xref-not-found - See documentation] Cross reference not found: 'agent'.
  • Line 6, Column 3: [Warning: xref-not-found - See documentation] Cross reference not found: 'config'.
  • Line 7, Column 3: [Warning: xref-not-found - See documentation] Cross reference not found: 'deployment'.
  • Line 8, Column 3: [Warning: xref-not-found - See documentation] Cross reference not found: 'disk'.
  • Line 9, Column 3: [Warning: xref-not-found - See documentation] Cross reference not found: 'extension'.
  • Line 10, Column 3: [Warning: xref-not-found - See documentation] Cross reference not found: 'group'.
  • Line 11, Column 3: [Warning: xref-not-found - See documentation] Cross reference not found: 'login'.
  • Line 12, Column 3: [Warning: xref-not-found - See documentation] Cross reference not found: 'logout'.
  • Line 13, Column 3: [Warning: xref-not-found - See documentation] Cross reference not found: 'profile'.
  • Line 14, Column 3: [Warning: xref-not-found - See documentation] Cross reference not found: 'rest'.
  • Line 15, Column 3: [Warning: xref-not-found - See documentation] Cross reference not found: 'vm'.

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.

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.
@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 1767a77:

⚠️ Validation status: warnings

File Status Preview URL Details
docs-ref-autogen/preview-version/latest/service-page/azure-cli.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/TOC.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/service-page/azure-cli.yml

  • Line 5, Column 3: [Warning: xref-not-found - See documentation] Cross reference not found: 'agent'.
  • Line 6, Column 3: [Warning: xref-not-found - See documentation] Cross reference not found: 'config'.
  • Line 7, Column 3: [Warning: xref-not-found - See documentation] Cross reference not found: 'deployment'.
  • Line 8, Column 3: [Warning: xref-not-found - See documentation] Cross reference not found: 'disk'.
  • Line 9, Column 3: [Warning: xref-not-found - See documentation] Cross reference not found: 'extension'.
  • Line 10, Column 3: [Warning: xref-not-found - See documentation] Cross reference not found: 'group'.
  • Line 11, Column 3: [Warning: xref-not-found - See documentation] Cross reference not found: 'login'.
  • Line 12, Column 3: [Warning: xref-not-found - See documentation] Cross reference not found: 'logout'.
  • Line 13, Column 3: [Warning: xref-not-found - See documentation] Cross reference not found: 'profile'.
  • Line 14, Column 3: [Warning: xref-not-found - See documentation] Cross reference not found: 'rest'.
  • Line 15, Column 3: [Warning: xref-not-found - See documentation] Cross reference not found: 'vm'.

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.

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.

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