az role definition update - wrong example
See original GitHub issueI am trying to create and update custom roles. However I’m facing issues when running the update command using a role definition that worked perfectly when creating a custom role. It seems that the example to update a definition is a copy&paste error as it actually uses the create
command. Wondering how the role definition needs to look to prevent the following error during an update
operation
▶ az role definition update --role-definition roles/keyvault.json
Please provide the unique logic name of an existing role
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 40e649cf-40e3-1b9e-141a-c62d244eda61
- Version Independent ID: 78ea89c1-7c56-e33b-d10a-dae05642aa34
- Content: az role definition
- Content Source: src/command_modules/azure-cli-role/azure/cli/command_modules/role/_help.py
- Service: azure-resource-manager
- GitHub Login: @rloutlaw
- Microsoft Alias: routlaw
Issue Analytics
- State:
- Created 5 years ago
- Comments:13 (5 by maintainers)
Top Results From Across the Web
az role definition - Microsoft Learn
az role definition delete --name [--custom-role-only {false, ... Examples. Update a role using the output of "az role definition list". (Bash). Azure CLI...
Read more >How do I create custom roles using the Azure CLI?
Now, you can check for the newly created custom role using the below command in Azure CLI. az role definition list --custom-role-only true ......
Read more >azurerm_role_assignment | Resources | hashicorp/azurerm
Assigns a given Principal (User or Group) to a given Role. Example Usage (using a built-in Role). data "azurerm_subscription" "primary" { } ...
Read more >Manage access to an Azure Machine Learning workspace
For example, if a user's role does not have the ability to create a ... az role definition update --role-definition update_def.json --subscription <sub-id>....
Read more >AZ CLI - Assign User Role - DEV Community
I have permissions to assign roles, this command is working for me for other principal types, but for user principals I'm receiving this...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It is a CLI bug that we are not resolving the role definitions from the assignable scopes correctly. @anoff Sorry for the delay in response. For now the reliable workaround is to delete and recreate the definition before we release the fix
@santy8a, the
id
is not respected right now but my PR will do. So please use the upcoming release