-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 assignment list
: Add --fill-role-definition-name
to allow omitting principalName
property
#31152
base: dev
Are you sure you want to change the base?
Conversation
️✔️AzureCLI-FullTest
|
|
rule | cmd_name | rule_message | suggest_message |
---|---|---|---|
role assignment list | cmd role assignment list added parameter fill_role_definition_name |
The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR. Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions). pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
9d6e08e
to
66cd34d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This recording file previously contains 8 requests with /providers/Microsoft.Authorization/roleDefinitions?api-version=2022-05-01-preview
. Now it contains only 4.
66cd34d
to
280f5c6
Compare
Related command
az role definition list
Description
With the ever-increasing number of built-in roles, the list returned by Role Definitions - List API is getting bigger and bigger (#30579), making
az role assignment list
command slower.In our test subscription,
role_defs
atazure-cli/src/azure-cli/azure/cli/command_modules/role/custom.py
Lines 273 to 274 in 919923c
contains 653 items with the size of 588563 bytes, bloating recording files to megabytes big, exceeding the limit of Git diff.
This PR adds
--fill-role-definition-name
to allow omittingroleDefinitionName
property, similar to #30693.Testing Guide
Additional information
#30587 uses
roleName
filter to accelerateaz role definition list
, but foraz role definition list
, this would require making a REST call for each role definition. Giving the user the choice whether to fillroleDefinitionName
property is still mandatory.