[Role] az role assignment list: Add warning for classic administrators retirement#29404
[Role] az role assignment list: Add warning for classic administrators retirement#29404
az role assignment list: Add warning for classic administrators retirement#29404Conversation
️✔️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.
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.
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.
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.
As discussed, we should use the official name classic administrators.
dcaro
left a comment
There was a problem hiding this comment.
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.
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