[Identity] az identity create/update: Add new --isolation-scope parameter to support identity isolation scope#31938
Conversation
️✔️AzureCLI-FullTest
|
|
| rule | cmd_name | rule_message | suggest_message |
|---|---|---|---|
| identity create | cmd identity create added parameter isolation_scope |
||
| identity update | cmd identity update added |
|
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>
|
There was a problem hiding this comment.
Pull Request Overview
This PR upgrades the azure-mgmt-msi dependency from version 7.0.0 to 7.1.0 and introduces support for the --isolation-scope parameter in the Identity module, enabling control over identity assignment restrictions within Azure regions.
- Upgrade azure-mgmt-msi library to version 7.1.0 across all platforms
- Implement new
--isolation-scopeparameter for bothcreateandupdateoperations - Add support for
az identity updatecommand with isolation scope functionality
Reviewed Changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/azure-cli/setup.py | Updates azure-mgmt-msi version constraint to ~7.1.0 |
| src/azure-cli/requirements.*.txt | Updates fixed version to 7.1.0 across all platforms |
| src/azure-cli-core/azure/cli/core/profiles/_shared.py | Updates default API version to 2024-11-30 |
| src/azure-cli/azure/cli/command_modules/identity/custom.py | Adds isolation_scope parameter support and update_identity function |
| src/azure-cli/azure/cli/command_modules/identity/commands.py | Adds generic_update_command for identity update |
| src/azure-cli/azure/cli/command_modules/identity/_params.py | Defines isolation_scope parameter for create and update commands |
| src/azure-cli/azure/cli/command_modules/identity/_help.py | Adds help documentation for the update command |
| test files | Updates test cases and recordings for new functionality |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Address AI comment
az identity [create | update]: Add support for azure-mgmt-msi v7.1.0, introducing update support and new --isolation-scope parameteraz identity create/update: Add new --isolation-scope parameter to support identity isolation scope
|
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 resolve the CI issues asap, otherwise it has to be postponed to next sprint (12/02). |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
Related command
az identity createaz identity updateDescription
isolationScopeproperty on createisolationScopepropertyTesting Guide
az identity create -n myidentity -g myResourceGroup --isolation-scope Regionalaz identity update -n myidentity -g myResourceGroup --isolation-scope NoneHistory Notes
[Identity]
az identity create: Add new--isolation-scopeparameter to support identity isolation scope[Identity]
az identity update: Add new command to support updating an identityThis 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.