Support for Platform Release Channel in Azure App Service. (az webapp update --platform-release-channel)#32811
Conversation
Add support for setting the platform release channel (Standard, Latest, Extended) on web apps via az webapp update. Uses additional_properties pattern since the property is not yet in the SDK model. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Validation for Azure CLI Full Test Starting...
Thanks for your contribution! |
|
Hi @surenderssm, |
|
Validation for Breaking Change Starting...
Thanks for your contribution! |
|
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 adds support for setting the platform release channel on Azure App Service web apps through the az webapp update command. The platform release channel determines which version of the App Service platform the web app runs on, with options for Standard, Latest, or Extended support channels.
Changes:
- Added
--platform-release-channelparameter toaz webapp updatecommand with enum validation for Standard/Latest/Extended values - Implemented the feature using the additional_properties pattern since the property is not yet in the SDK model
- Added comprehensive unit tests covering all three channel values, case-insensitive input, and null handling
- Updated help documentation with usage examples
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/azure-cli/azure/cli/command_modules/appservice/_params.py | Defines PLATFORM_RELEASE_CHANNEL_TYPES enum and adds platform_release_channel parameter to webapp update command context |
| src/azure-cli/azure/cli/command_modules/appservice/custom.py | Implements platform_release_channel handling in update_webapp function using additional_properties pattern |
| src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_webapp_commands_thru_mock.py | Adds comprehensive unit tests for the new parameter covering all enum values, case normalization, and null handling |
| src/azure-cli/azure/cli/command_modules/appservice/_help.py | Adds example showing how to use the new platform-release-channel parameter |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...zure-cli/azure/cli/command_modules/appservice/tests/latest/test_webapp_commands_thru_mock.py
Outdated
Show resolved
Hide resolved
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
| if prewarmed_instance_count is not None: | ||
| instance.site_config.pre_warmed_instance_count = prewarmed_instance_count | ||
|
|
||
| if platform_release_channel is not None: |
There was a problem hiding this comment.
do we need a isLinux validation too?
There was a problem hiding this comment.
As mentioned in other comment, this is for both!
Add support for setting the platform release channel (Standard, Latest, Extended) on web apps via az webapp update.
Related command
az webapp updateDescription
Add --platform-release-channel parameter to az webapp update to allow users to set the platform release channel for their web app. Allowed values are Standard, Latest, and Extended (case-insensitive, normalized to title case before sending to the API).
Testing Guide
Set platform release channel to Extended
az webapp update -g MyResourceGroup -n MyAppName --platform-release-channel ExtendedSet platform release channel to Standard (case-insensitive input)
az webapp update -g MyResourceGroup -n MyAppName --platform-release-channel standardWorks with slots
az webapp update -g MyResourceGroup -n MyAppName --slot staging --platform-release-channel LatestTest Evidence
Before
az webapp update -g hello-sumali -n test-prc-v2 --platform-release-channel Extended
After (from az cli from the feature branch)
Steps:
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.