-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
{Role} az role definition list
: Use roleName
filter when --name
is a non-GUID string
#30587
Conversation
️✔️AzureCLI-FullTest
|
️✔️AzureCLI-BreakingChangeTest
|
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
az role definition list
: Add --role-name
argument to filter with roleName
propertyaz role definition list
: Use roleName
filter
|
az role definition list
: Use roleName
filteraz role definition list
: Use roleName
filter when --name
is a non-GUID string
|
Related command
az role definition list
Description
Close #30579
With the ever-increasing number of built-in roles, the list returned by Role Definitions - List API is getting bigger and bigger, making
az role definition list
command slower (#30579).This PR leverages
roleName
filter to limit the number of role definitions returned by Role Definitions - List API.Actually, Azure CLI has been using
roleName
as a filter to call Role Definitions - List API in_resolve_role_id
since #508:azure-cli/src/azure-cli/azure/cli/command_modules/role/custom.py
Line 616 in e8efb79
though the behavior was not documented. We use
roleName
filter inaz role definition list
too.Testing Guide