-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[App Service] az appservice list-locations: Add --managed-instance-enabled parameter for managed instances
#32444
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
[App Service] az appservice list-locations: Add --managed-instance-enabled parameter for managed instances
#32444
Conversation
️✔️AzureCLI-FullTest
|
|
Hi @joslinmicrosoft, |
|
| rule | cmd_name | rule_message | suggest_message |
|---|---|---|---|
| appservice list-locations | cmd appservice list-locations added parameter managed_instance_enabled |
|
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds support for filtering App Service locations by Managed Instance availability through a new --managed-instance-enabled flag for the az appservice list-locations command. The implementation validates that only PREMIUMV4 and PREMIUMMV4 SKU tiers are supported for Managed Instances and uses the newer API version 2025-03-01 to query regions that support custom mode workers.
Key Changes:
- Added
--managed-instance-enabledparameter (marked as preview) to enable filtering for Managed Instance-compatible regions - Implemented SKU tier validation to ensure only PREMIUMV4 and PREMIUMMV4 tiers are accepted for Managed Instances
- Introduced a new AAZ command wrapper (
AppServiceListLocations) utilizing API version 2025-03-01 for managed instance region queries
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
src/azure-cli/azure/cli/command_modules/appservice/_params.py |
Added --managed-instance-enabled parameter definition marked as preview |
src/azure-cli/azure/cli/command_modules/appservice/utils.py |
Added is_sku_tier_enabled_for_managed_instance() helper function to validate SKU tier eligibility |
src/azure-cli/azure/cli/command_modules/appservice/custom.py |
Modified list_locations() to handle managed instance filtering and added _list_managed_instance_locations() helper function |
src/azure-cli/azure/cli/command_modules/appservice/aaz/latest/appservice/_list_locations.py |
Auto-generated AAZ command class for calling the 2025-03-01 API version with custom mode workers support |
src/azure-cli/azure/cli/command_modules/appservice/aaz/latest/appservice/__init__.py |
Added import for the new ListLocations AAZ command |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
src/azure-cli/azure/cli/command_modules/appservice/aaz/latest/appservice/_list_locations.py
Outdated
Show resolved
Hide resolved
src/azure-cli/azure/cli/command_modules/appservice/aaz/latest/appservice/_list_locations.py
Outdated
Show resolved
Hide resolved
…appservice/_list_locations.py Co-authored-by: Copilot <[email protected]>
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.
Pull request overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
/azp run |
|
could you please add some tests for this change |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
please submit a PR for the change of aaz repo as well |
az appservice list-locations: Add --managed-instance-enabled flag for Managed Instancesaz appservice list-locations: Add --managed-instance-enabled flag for managed instances
@yanzhudd PR has been submitted with the change here: Azure/aaz#901 |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
az appservice list-locations: Add --managed-instance-enabled flag for managed instancesaz appservice list-locations: Add --managed-instance-enabled parameter for managed instances
…-enabled` parameter for managed instances (Azure#32444)
Related command
az appservice list-locationsDescription
We recently announced support for Managed Instance on Azure App Service, which is a new type of App Service Plan. We are adding the
--managed-instance-enabledflag to theaz appservice list-locationsso customers can determine which regions support Managed Instances.Testing Guide
az appservice list-locations --managed-instance-enabled --sku P1V4az appservice list-locations --managed-instance-enabled --sku P2V4az appservice list-locations --managed-instance-enabled --sku P1mV4These three all return the expected list of regions for Managed Instances, with the supported SKU.
az appservice list-locations --managed-instance-enabled --sku S1This returns an empty list as expected as S1 is not a supported SKU
az appservice list-locations --hyperv-workers-enabled --sku P1V3az appservice list-locations --linux-workers-enabled --sku S1Spot check that existing flags still give the correct list of regions
History Notes
[Component Name 1] BREAKING CHANGE:
az command a: Make some customer-facing breaking change[Component Name 2]
az command b: Add some customer-facing featureThis 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.