question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

az role definition update - wrong example

See original GitHub issue

I 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.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
yugangw-msftcommented, Jun 19, 2018

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

1reaction
yugangw-msftcommented, Mar 5, 2019

@santy8a, the id is not respected right now but my PR will do. So please use the upcoming release

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found