old link to az ad sp create-for-rbac
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
## 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_rbac
but 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`
```powershell
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
```
## 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
```
Windows-10-10.0.19044-SP0
Python 3.10.4
Installer: MSI
azure-cli 2.37.0
Extensions:
containerapp 0.3.5
deploy-to-azure 0.2.0
log-analytics 0.2.2
Dependencies:
msal 1.18.0b1
azure-mgmt-resource 21.1.0b1
```
## Additional Context
Contributor guide
Assessment
This issue has not been assessed yet.