-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[Role] az role assignment list: Add warning for classic administrators retirement
#29404
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
Conversation
️✔️AzureCLI-FullTest
|
|
| rule | cmd_name | rule_message | suggest_message |
|---|---|---|---|
| role assignment list | cmd role assignment list update parameter include_classic_administrators: added property deprecate_info_target=--include-classic-administrators |
|
Role |
| [WARNING] Classic administrators will be deprecated on August 31, 2024. | ||
| After August 31, 2024, all classic administrators risk losing access to the subscription. | ||
| Delete Classic Admins who no longer need access or assign an Azure RBAC role for fine-grained access control. |
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 message is copied from Azure Portal's banner (#27199 (comment)). However, the banner cannot render correctly today:
I don't know what is inside that "Learn more" hyperlink.
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.
I used Inspect tool to find the link to be https://go.microsoft.com/fwlink/?linkid=2238474
| [WARNING] Classic administrators will be deprecated on August 31, 2024. | ||
| After August 31, 2024, all classic administrators risk losing access to the subscription. | ||
| Delete Classic Admins who no longer need access or assign an Azure RBAC role for fine-grained access control. |
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.
The wording is inconsistent: the full name administrators should be used, instead of admins.
| Delete Classic Admins who no longer need access or assign an Azure RBAC role for fine-grained access control. | |
| Delete classic administrators who no longer need access or assign an Azure RBAC role for fine-grained access control. |
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.
As discussed, we should use the official name classic administrators.
dcaro
left a comment
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.
One minor suggestion other than that LGTM
az role assignment list: Add warning for classic administrators retirement
| c.argument('include_classic_administrators', arg_type=get_three_state_flag(), help='list default role assignments for subscription classic administrators, aka co-admins') | ||
| c.argument('include_classic_administrators', arg_type=get_three_state_flag(), | ||
| help='list default role assignments for subscription classic administrators, aka co-admins', | ||
| deprecate_info=c.deprecate(target='--include-classic-administrators')) |
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.
Without target='--include-classic-administrators', the warning message will be:
Argument 'include_classic_administrators' has been deprecated and will be removed in a future release.


Related command
az role assignment listDescription
This PR makes changes according to #27199.
According to https://azure.microsoft.com/en-us/updates/azure-classic-administrator-roles-are-retiring-on-31-august-2024/, Azure Classic Administrator roles will be retired on 2024-08-31.
Azure CLI should announce this in advance:
Testing Guide