az role definition list
cannot show only built-in roles
#30647
Labels
Auto-Assign
Auto assign by bot
Azure CLI Team
The command of the issue is owned by Azure CLI team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
RBAC
az role
Related command
az role definition list
Is your feature request related to a problem? Please describe.
According to https://learn.microsoft.com/en-us/azure/role-based-access-control/role-definitions-list#list-role-definitions, the underlying Role Definitions - List REST API supports returning
CustomRole
+BuiltInRole
CustomRole
BuiltInRole
But in CLI,
--custom-role-only
only supports returningCustomRole
+BuiltInRole
CustomRole
azure-cli/src/azure-cli/azure/cli/command_modules/role/custom.py
Lines 166 to 167 in 649886e
thus losing the ability to only show
BuiltInRole
.Describe the solution you'd like
az role definition list
should support a--type
argument that maps to the$filter=type+eq+'{type}'
filter.Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: