PS C:\Users\mdepouw> $PASSWORD=az ad sp create-for-rbac --name
WARNING: This command or command group has been migrated to Microsoft Graph API. Please carefully review all breaking changes introduced during this migration: https://docs.microsoft.com/cli/azure/microsoft-graph-migration
ERROR: argument --display-name/--name/-n: expected one argument
Examples from AI knowledge base:
az ad sp create-for-rbac --name "MyApp" --role contributor --scopes /subscriptions/{SubID}/resourceGroups/{ResourceGroup1} /subscriptions/{SubID}/resourceGroups/{ResourceGroup2}
Create with customized contributor assignments.
az ad sp create-for-rbac --skip-assignment
Create without a default assignment.
az acr show --name MyRegistry --query loginServer
Get the login server for an Azure Container Registry.
https://docs.microsoft.com/en-US/cli/azure/ad/sp#az_ad_sp_create_for_rbac
Read more about the command in reference docs
Describe the bug
When I ran
az ad sp create-for-rbac --name
it provided this link: https://docs.microsoft.com/en-US/cli/azure/ad/sp?view=azure-cli-latest#az_ad_sp_create_for_rbacbut the anchor link part isn't right; hyphens not underscores 😊: https://docs.microsoft.com/en-US/cli/azure/ad/sp?view=azure-cli-latest#az-ad-sp-create-for-rbac
Command Name
az ad sp create-for-rbac
To Reproduce:
az ad sp create-for-rbac --name
Expected Behavior
link should be to: https://docs.microsoft.com/en-US/cli/azure/ad/sp?view=azure-cli-latest#az-ad-sp-create-for-rbac
Environment Summary
Additional Context