Azure / Azure/azure-cli

Inconsistent experience when using AZ CLI update RBAC custom role

Open
#13,128 2 comments 0 reactions 1 assignee Claimed by @jiasli View on GitHub
act-identity-squad feature-request RBAC
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

When we use AZ CLI create a new RBAC custom role, we use field 'Name' for the custom role name definition.

https://docs.microsoft.com/zh-cn/cli/azure/role/definition?view=azure-cli-latest#az-role-definition-create
![image](https://user-images.githubusercontent.com/19336872/80053960-b80da000-8550-11ea-8e2b-8cf21b04b43a.png)

However, when we use AZ CLI to update the custom role, we have to update field 'Name' to 'roleName'. Otherwise, we would get error message as issue https://github.com/Azure/azure-cli/issues/10739 described.

https://docs.microsoft.com/zh-cn/cli/azure/role/definition?view=azure-cli-latest#az-role-definition-update
![image](https://user-images.githubusercontent.com/19336872/80054122-0ae75780-8551-11ea-8808-c8632003dd24.png)

Such inconsistent experience really confuses customer when using AZ CLI for custom role update. Could you please improve it for better customer experience.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.