[Identity] az identity create/update: Add --resource-restriction parameter to support identity assignment restrictions#32214
Open
mohamedyilmaz123 wants to merge 41 commits intoAzure:devfrom
Conversation
❌AzureCLI-FullTest
|
|
| rule | cmd_name | rule_message | suggest_message |
|---|---|---|---|
| identity create | cmd identity create added parameter assignment_restrictions |
||
| identity create | cmd identity create update parameter isolation_scope: added property aaz_type=string |
||
| identity create | cmd identity create update parameter isolation_scope: added property type=string |
||
| identity create | cmd identity create update parameter location: added property aaz_type=string |
||
| identity create | cmd identity create update parameter location: updated property type from custom_type to string |
||
| identity create | cmd identity create update parameter resource_group_name: added property aaz_type=string |
||
| identity create | cmd identity create update parameter resource_group_name: added property type=string |
||
| identity create | cmd identity create update parameter resource_group_name: updated property name from resource_group_name to resource_group |
||
| identity create | cmd identity create update parameter resource_name: added property aaz_type=string |
||
| identity create | cmd identity create update parameter resource_name: added property type=string |
||
| identity create | cmd identity create update parameter resource_name: removed property id_part=name |
||
| identity create | cmd identity create update parameter resource_name: updated property options from ['--name', '-n'] to ['--name', '--resource-name', '-n'] |
||
| identity create | cmd identity create update parameter tags: added property aaz_type=AAZDictArg |
||
| identity create | cmd identity create update parameter tags: added property type=Dict<String,String> |
||
| identity create | cmd identity create update parameter tags: updated property nargs from * to + |
||
| identity delete | cmd identity delete added parameter yes |
||
| identity delete | cmd identity delete update parameter resource_group_name: added property aaz_type=string |
||
| identity delete | cmd identity delete update parameter resource_group_name: added property type=string |
||
| identity delete | cmd identity delete update parameter resource_group_name: updated property name from resource_group_name to resource_group |
||
| identity delete | cmd identity delete update parameter resource_name: added property aaz_type=string |
||
| identity delete | cmd identity delete update parameter resource_name: added property type=string |
||
| identity delete | cmd identity delete update parameter resource_name: updated property options from ['--name', '-n'] to ['--name', '--resource-name', '-n'] |
||
| identity list | cmd identity list added parameter pagination_limit |
||
| identity list | cmd identity list added parameter pagination_token |
||
| identity list | cmd identity list update parameter resource_group_name: added property aaz_type=string |
||
| identity list | cmd identity list update parameter resource_group_name: added property type=string |
||
| identity list | cmd identity list update parameter resource_group_name: updated property name from resource_group_name to resource_group |
||
| identity show | cmd identity show update parameter resource_group_name: added property aaz_type=string |
||
| identity show | cmd identity show update parameter resource_group_name: added property type=string |
||
| identity show | cmd identity show update parameter resource_group_name: updated property name from resource_group_name to resource_group |
||
| identity show | cmd identity show update parameter resource_name: added property aaz_type=string |
||
| identity show | cmd identity show update parameter resource_name: added property type=string |
||
| identity show | cmd identity show update parameter resource_name: updated property options from ['--name', '-n'] to ['--name', '--resource-name', '-n'] |
||
| identity update | cmd identity update added parameter assignment_restrictions |
||
| identity update | cmd identity update update parameter isolation_scope: added property aaz_type=string |
||
| identity update | cmd identity update update parameter isolation_scope: added property type=string |
||
| identity update | cmd identity update update parameter properties_to_add: added property aaz_type=AAZGenericUpdateAddArg |
||
| identity update | cmd identity update update parameter properties_to_remove: added property aaz_type=AAZGenericUpdateRemoveArg |
||
| identity update | cmd identity update update parameter properties_to_set: added property aaz_type=AAZGenericUpdateSetArg |
||
| identity update | cmd identity update update parameter resource_group_name: added property aaz_type=string |
||
| identity update | cmd identity update update parameter resource_group_name: added property type=string |
||
| identity update | cmd identity update update parameter resource_group_name: updated property name from resource_group_name to resource_group |
||
| identity update | cmd identity update update parameter resource_name: added property aaz_type=string |
||
| identity update | cmd identity update update parameter resource_name: added property type=string |
||
| identity update | cmd identity update update parameter resource_name: updated property options from ['--name', '-n'] to ['--name', '--resource-name', '-n'] |
||
| identity update | cmd identity update update parameter tags: added property aaz_type=AAZDictArg |
||
| identity update | cmd identity update update parameter tags: added property type=Dict<String,String> |
||
| identity update | cmd identity update update parameter tags: updated property nargs from * to + |
Collaborator
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
|
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>
|
Author
|
@microsoft-github-policy-service agree company="Microsoft" |
|
Azure Pipelines successfully started running 3 pipeline(s). |
Collaborator
|
Please fix CI issues |
Contributor
|
please note that Azure CLI's code completion time is on 11/11/2025 at 07:00 UTC. If you want to catch up this release train, please address the comments and resolve the CI issues asap, otherwise it has to be postponed to next sprint (12/02). |
Contributor
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related command
Includes the resource restriction property.
az identity create
az identity update
No changes with respect to the resource-restriction property.
az identity show
az identity delete
az identity list
I have changed the identity commands to use the AAZ implementation by: -
This enables identity commands support through the AAZ implementation using API version 2025-05-31-preview
Description
Make updates to the identity module to invoke AAZ generated operations (create, update, list, show) for UserAssigned identities with 2025-05-31-Preview version
Enables support for identity resource restrictions property on create, update
Adds support for identity update, including changes to the resource restrictions property
Testing Guide
We need to test all the commands under identity subgroup to make sure az identity (create, update) commands now support creation with the resource restriction property and no regression is observed in az identity (delete, list, show) commands.
Test Commands



1] az identity create
a] Create using Resource Restriction property
2] az identity update
a] Update using Resource Restriction property
3] az identity show
4] az identity delete
5] az identity list
History Notes
[Identity] az identity create: Add new --resource-restriction parameter to support identity assignment restrictions
[Identity] az identity update: Add new command to support updating an identity
This checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.