Azure / azure-cli

Azure Command-Line Interface
MIT License
4.01k stars 2.98k forks source link

Customer feedback | az aks create | CLI example incorrect #29842

Open dbradish-microsoft opened 1 month ago

dbradish-microsoft commented 1 month ago

Describe the bug

This GitHub issue is being moved from MicrosoftDocs/azure-docs-cli GitHub issue 4596.


Type of issue

Typo

Feedback

The example in this document is incorrect. There should be a "/" in front of the "subscriptions/SubID..." az aks create -g MyResourceGroup -n MyMC --kubernetes-version 1.20.9 --node-vm-size VMSize --assign-identity "subscriptions/SubID/resourceGroups/RGName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myID" --enable-managed-identity --crg-id "subscriptions/SubID/resourceGroups/RGName/providers/Microsoft.ContainerService/CapacityReservationGroups/MyCRGID"

Page URL

https://learn.microsoft.com/en-us/cli/azure/aks?view=azure-cli-latest

Content source URL

https://github.com/MicrosoftDocs/azure-docs-cli/blob/main/latest/docs-ref-autogen/aks.yml

Screen print

image

Related command

az aks create

Errors

autogenerated example has syntax error, it is missing a /

Issue script & Debug output

n/a

Expected behavior

n/a

Environment Summary

Azure CLI 2.64.0

Additional context

No response

yonzhan commented 1 month ago

Thank you for opening this issue, we will look into it.