Skip to content

[App Service] New commands to set and show site update strategy for flex consumption function apps#33417

Closed
patelchandni wants to merge 8 commits into
Azure:devfrom
patelchandni:siteUpdateStrategy
Closed

[App Service] New commands to set and show site update strategy for flex consumption function apps#33417
patelchandni wants to merge 8 commits into
Azure:devfrom
patelchandni:siteUpdateStrategy

Conversation

@patelchandni
Copy link
Copy Markdown

Related command
[NEW] az functionapp update-strategy config set --type
[NEW] az functionapp update-strategy config show

Description

  • _constants.py - Added the constants
  • commands.py - Added command group registration
  • _help.py - Added help text for all commands with examples
  • _params.py - Added --type parameter with get_enum_type(UPDATE_STRATEGY_TYPES) for case-insensitive validation
  • custom.py - Added implementation functions:
    • get_update_strategy_config() - Returns the update strategy configuration
    • set_update_strategy_config() - Sets the strategy type with case-insensitive validation and success logging
  • test_functionapp_commands.py - Added test_functionapp_flex_update_strategy_config to the FunctionAppFlex class that:
    • Creates a flex consumption function app
    • Sets update strategy to Recreate and verifies
    • Shows update strategy config and verifies
    • Sets update strategy to RollingUpdate and verifies
    • Tests case insensitivity with lowercase recreate
    • Tests case insensitivity with lowercase rollingupdate

Testing Guide
az functionapp update-strategy config set -g -n --type RollingUpdate
az functionapp update-strategy config show -g -n

History Notes

[App Service] az functionapp update-strategy config set: Add new command to set or update a function app's update strategy configuration.
[App Service] az functionapp update-strategy config show: Add new command to get the details of a function app's update strategy configuration.


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

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

Validation for Azure CLI Full Test Starting...

Thanks for your contribution!

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

Hi @patelchandni,
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
Copy Markdown

Validation for Breaking Change Starting...

Thanks for your contribution!

@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented May 21, 2026

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

@github-actions
Copy link
Copy Markdown

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>

@yonzhan yonzhan assigned yanzhudd and unassigned zhoxing-ms May 21, 2026
@patelchandni patelchandni marked this pull request as ready for review May 22, 2026 14:25
Copilot AI review requested due to automatic review settings May 22, 2026 14:25
@patelchandni
Copy link
Copy Markdown
Author

These changes are part of PR #33341

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants