Skip to content

Conversation

@joslinmicrosoft
Copy link
Member

Related command
az appservice list-locations

Description
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-enabled flag to the az appservice list-locations so customers can determine which regions support Managed Instances.

Testing Guide
az appservice list-locations --managed-instance-enabled --sku P1V4
az appservice list-locations --managed-instance-enabled --sku P2V4
az appservice list-locations --managed-instance-enabled --sku P1mV4
These three all return the expected list of regions for Managed Instances, with the supported SKU.

az appservice list-locations --managed-instance-enabled --sku S1
This returns an empty list as expected as S1 is not a supported SKU

az appservice list-locations --hyperv-workers-enabled --sku P1V3
az appservice list-locations --linux-workers-enabled --sku S1
Spot 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 feature


This checklist is used to make sure that common guidelines for a pull request are followed.

Copilot AI review requested due to automatic review settings November 21, 2025 20:56
@azure-client-tools-bot-prd
Copy link

azure-client-tools-bot-prd bot commented Nov 21, 2025

️✔️AzureCLI-FullTest
️✔️acr
️✔️latest
️✔️3.12
️✔️3.13
️✔️acs
️✔️latest
️✔️3.12
️✔️3.13
️✔️advisor
️✔️latest
️✔️3.12
️✔️3.13
️✔️ams
️✔️latest
️✔️3.12
️✔️3.13
️✔️apim
️✔️latest
️✔️3.12
️✔️3.13
️✔️appconfig
️✔️latest
️✔️3.12
️✔️3.13
️✔️appservice
️✔️latest
️✔️3.12
️✔️3.13
️✔️aro
️✔️latest
️✔️3.12
️✔️3.13
️✔️backup
️✔️latest
️✔️3.12
️✔️3.13
️✔️batch
️✔️latest
️✔️3.12
️✔️3.13
️✔️batchai
️✔️latest
️✔️3.12
️✔️3.13
️✔️billing
️✔️latest
️✔️3.12
️✔️3.13
️✔️botservice
️✔️latest
️✔️3.12
️✔️3.13
️✔️cdn
️✔️latest
️✔️3.12
️✔️3.13
️✔️cloud
️✔️latest
️✔️3.12
️✔️3.13
️✔️cognitiveservices
️✔️latest
️✔️3.12
️✔️3.13
️✔️compute_recommender
️✔️latest
️✔️3.12
️✔️3.13
️✔️computefleet
️✔️latest
️✔️3.12
️✔️3.13
️✔️config
️✔️latest
️✔️3.12
️✔️3.13
️✔️configure
️✔️latest
️✔️3.12
️✔️3.13
️✔️consumption
️✔️latest
️✔️3.12
️✔️3.13
️✔️container
️✔️latest
️✔️3.12
️✔️3.13
️✔️containerapp
️✔️latest
️✔️3.12
️✔️3.13
️✔️core
️✔️latest
️✔️3.12
️✔️3.13
️✔️cosmosdb
️✔️latest
️✔️3.12
️✔️3.13
️✔️databoxedge
️✔️latest
️✔️3.12
️✔️3.13
️✔️dls
️✔️latest
️✔️3.12
️✔️3.13
️✔️dms
️✔️latest
️✔️3.12
️✔️3.13
️✔️eventgrid
️✔️latest
️✔️3.12
️✔️3.13
️✔️eventhubs
️✔️latest
️✔️3.12
️✔️3.13
️✔️feedback
️✔️latest
️✔️3.12
️✔️3.13
️✔️find
️✔️latest
️✔️3.12
️✔️3.13
️✔️hdinsight
️✔️latest
️✔️3.12
️✔️3.13
️✔️identity
️✔️latest
️✔️3.12
️✔️3.13
️✔️iot
️✔️latest
️✔️3.12
️✔️3.13
️✔️keyvault
️✔️latest
️✔️3.12
️✔️3.13
️✔️lab
️✔️latest
️✔️3.12
️✔️3.13
️✔️managedservices
️✔️latest
️✔️3.12
️✔️3.13
️✔️maps
️✔️latest
️✔️3.12
️✔️3.13
️✔️marketplaceordering
️✔️latest
️✔️3.12
️✔️3.13
️✔️monitor
️✔️latest
️✔️3.12
️✔️3.13
️✔️mysql
️✔️latest
️✔️3.12
️✔️3.13
️✔️netappfiles
️✔️latest
️✔️3.12
️✔️3.13
️✔️network
️✔️latest
️✔️3.12
️✔️3.13
️✔️policyinsights
️✔️latest
️✔️3.12
️✔️3.13
️✔️privatedns
️✔️latest
️✔️3.12
️✔️3.13
️✔️profile
️✔️latest
️✔️3.12
️✔️3.13
️✔️rdbms
️✔️latest
️✔️3.12
️✔️3.13
️✔️redis
️✔️latest
️✔️3.12
️✔️3.13
️✔️relay
️✔️latest
️✔️3.12
️✔️3.13
️✔️resource
️✔️latest
️✔️3.12
️✔️3.13
️✔️role
️✔️latest
️✔️3.12
️✔️3.13
️✔️search
️✔️latest
️✔️3.12
️✔️3.13
️✔️security
️✔️latest
️✔️3.12
️✔️3.13
️✔️servicebus
️✔️latest
️✔️3.12
️✔️3.13
️✔️serviceconnector
️✔️latest
️✔️3.12
️✔️3.13
️✔️servicefabric
️✔️latest
️✔️3.12
️✔️3.13
️✔️signalr
️✔️latest
️✔️3.12
️✔️3.13
️✔️sql
️✔️latest
️✔️3.12
️✔️3.13
️✔️sqlvm
️✔️latest
️✔️3.12
️✔️3.13
️✔️storage
️✔️latest
️✔️3.12
️✔️3.13
️✔️synapse
️✔️latest
️✔️3.12
️✔️3.13
️✔️telemetry
️✔️latest
️✔️3.12
️✔️3.13
️✔️util
️✔️latest
️✔️3.12
️✔️3.13
️✔️vm
️✔️latest
️✔️3.12
️✔️3.13

@azure-client-tools-bot-prd
Copy link

Hi @joslinmicrosoft,
Since the current milestone time is less than 7 days, this pr will be reviewed in the next milestone.

@azure-client-tools-bot-prd
Copy link

azure-client-tools-bot-prd bot commented Nov 21, 2025

⚠️AzureCLI-BreakingChangeTest
⚠️appservice
rule cmd_name rule_message suggest_message
⚠️ 1006 - ParaAdd appservice list-locations cmd appservice list-locations added parameter managed_instance_enabled

@yonzhan
Copy link
Collaborator

yonzhan commented Nov 21, 2025

Thank you for your contribution! We will review the pull request and get back to you soon.

@github-actions
Copy link

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).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

Copy link
Contributor

Copilot AI left a 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-enabled parameter (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.

Copy link
Contributor

Copilot AI left a 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.

@yanzhudd
Copy link
Contributor

yanzhudd commented Dec 1, 2025

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@yanzhudd
Copy link
Contributor

yanzhudd commented Dec 1, 2025

/azp run

@yanzhudd
Copy link
Contributor

yanzhudd commented Dec 1, 2025

could you please add some tests for this change

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@yanzhudd
Copy link
Contributor

yanzhudd commented Dec 1, 2025

please submit a PR for the change of aaz repo as well

@yanzhudd yanzhudd changed the title [App Service] az appservice list-locations: Add --managed-instance-enabled flag for Managed Instances [App Service] az appservice list-locations: Add --managed-instance-enabled flag for managed instances Dec 2, 2025
@joslinmicrosoft
Copy link
Member Author

please submit a PR for the change of aaz repo as well

@yanzhudd PR has been submitted with the change here: Azure/aaz#901

@yanzhudd
Copy link
Contributor

yanzhudd commented Dec 3, 2025

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@yanzhudd yanzhudd changed the title [App Service] az appservice list-locations: Add --managed-instance-enabled flag for managed instances [App Service] az appservice list-locations: Add --managed-instance-enabled parameter for managed instances Dec 3, 2025
@yanzhudd yanzhudd merged commit 58844de into Azure:dev Dec 3, 2025
48 checks passed
huiii99 pushed a commit to huiii99/azure-cli that referenced this pull request Dec 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants