Repository navigation
[App Service] Add site and serverfarm silo commands and related entities - #34356
Conversation
|
Thank you for your contribution cmriachi! We will review the pull request and get back to you soon. |
|
this is a re-do of this ongoing PR: #34239 after my colleague had to hand-off the work due to his OOF. I set up the aaz PR that generates the modules: Azure/aaz#1162. Will finalize the live recording tests later today, but wanted to confirm this is eligible for the Nov 11 milestone and get reviews on correctness |
There was a problem hiding this comment.
🟡 Changes recommended
Lifecycle coverage is ineffective because the VNet assertion checks the wrong field, while missing recordings cause both scenarios to be skipped in normal CI.
2 open issues
What changed in this PR
Adds Active Backup management to Azure CLI’s App Service module, exposing plan and web app silos alongside networking, managed traffic, and last-known-good operations.
Changes:
- Adds generated commands for silo lifecycle management and related resources.
- Exposes preview commands under
appservice planandwebapp, with public argument aliases and PATCH-based VNet updates. - Adds Windows and Linux lifecycle scenarios with explicit approval gates for live recording.
Paths below are relative to src/azure-cli/azure/cli/command_modules/appservice/.
| File | Description |
|---|---|
tests/latest/test_active_backup_scenarios.py |
Adds guarded Windows and Linux lifecycle scenarios. |
commands.py |
Loads public commands for the latest profile. |
aaz/latest/web/site/silo/virtual_network_connection/virtual_network/_update.py |
Adds generated VNet connection updates. |
aaz/latest/web/site/silo/virtual_network_connection/virtual_network/_show.py |
Retrieves a silo’s VNet connection. |
aaz/latest/web/site/silo/virtual_network_connection/virtual_network/_delete.py |
Removes a silo’s VNet connection. |
aaz/latest/web/site/silo/virtual_network_connection/virtual_network/_create.py |
Creates a silo’s VNet connection. |
aaz/latest/web/site/silo/virtual_network_connection/virtual_network/__init__.py |
Exports VNet connection commands. |
aaz/latest/web/site/silo/virtual_network_connection/virtual_network/__cmd_group.py |
Registers the singleton VNet command group. |
aaz/latest/web/site/silo/virtual_network_connection/_list.py |
Lists silo VNet connections. |
aaz/latest/web/site/silo/virtual_network_connection/__init__.py |
Exports VNet connection listing. |
aaz/latest/web/site/silo/virtual_network_connection/__cmd_group.py |
Registers the VNet connection group. |
aaz/latest/web/site/silo/_wait.py |
Waits for web app silo conditions. |
aaz/latest/web/site/silo/_show.py |
Retrieves a web app silo. |
aaz/latest/web/site/silo/_list.py |
Lists web app silos. |
aaz/latest/web/site/silo/_delete.py |
Deletes web app silos with polling support. |
aaz/latest/web/site/silo/_create.py |
Creates web app silos with polling support. |
aaz/latest/web/site/silo/__init__.py |
Exports web app silo commands. |
aaz/latest/web/site/silo/__cmd_group.py |
Registers the web app silo group. |
aaz/latest/web/site/managed_traffic_config/default/_update.py |
Updates traffic mode and endpoint settings. |
aaz/latest/web/site/managed_traffic_config/default/_show.py |
Retrieves default traffic configuration. |
aaz/latest/web/site/managed_traffic_config/default/_create.py |
Creates default traffic configuration. |
aaz/latest/web/site/managed_traffic_config/default/__init__.py |
Exports default traffic commands. |
aaz/latest/web/site/managed_traffic_config/default/__cmd_group.py |
Registers the default traffic group. |
aaz/latest/web/site/managed_traffic_config/_list.py |
Lists traffic configurations with endpoint expansion. |
aaz/latest/web/site/managed_traffic_config/__init__.py |
Exports traffic configuration listing. |
aaz/latest/web/site/managed_traffic_config/__cmd_group.py |
Registers the traffic configuration group. |
aaz/latest/web/site/last_known_good/default/_show.py |
Retrieves last-known-good revision state. |
aaz/latest/web/site/last_known_good/default/_mark.py |
Marks the current state as last known good. |
aaz/latest/web/site/last_known_good/default/__init__.py |
Exports revision show and mark commands. |
aaz/latest/web/site/last_known_good/default/__cmd_group.py |
Registers the default revision group. |
aaz/latest/web/site/last_known_good/_list.py |
Lists last-known-good revision state. |
aaz/latest/web/site/last_known_good/__init__.py |
Exports revision listing. |
aaz/latest/web/site/last_known_good/__cmd_group.py |
Registers the last-known-good group. |
aaz/latest/web/site/_refresh_silo.py |
Requests refresh and synchronization of silos. |
aaz/latest/web/site/__init__.py |
Exports the silo refresh command. |
aaz/latest/web/serverfarm/silo/virtual_network_integration/_show.py |
Retrieves plan silo network integrations. |
aaz/latest/web/serverfarm/silo/virtual_network_integration/__init__.py |
Exports network integration inspection. |
aaz/latest/web/serverfarm/silo/virtual_network_integration/__cmd_group.py |
Registers the plan network integration group. |
aaz/latest/web/serverfarm/silo/_wait.py |
Waits for plan silo conditions. |
aaz/latest/web/serverfarm/silo/_update.py |
Updates plan silo settings with polling support. |
aaz/latest/web/serverfarm/silo/_show.py |
Retrieves an App Service plan silo. |
aaz/latest/web/serverfarm/silo/_list.py |
Lists App Service plan silos. |
aaz/latest/web/serverfarm/silo/_delete.py |
Deletes plan silos with polling support. |
aaz/latest/web/serverfarm/silo/_create.py |
Creates plan silos with polling support. |
aaz/latest/web/serverfarm/silo/__init__.py |
Exports plan silo commands. |
aaz/latest/web/serverfarm/silo/__cmd_group.py |
Registers the plan silo group. |
aaz/latest/web/serverfarm/__init__.py |
Exports the serverfarm command group. |
aaz/latest/web/serverfarm/__cmd_group.py |
Registers the serverfarm parent group. |
_active_backup.py |
Adds public preview commands, aliases, and VNet PATCH behavior. |
Review effort: Balanced
|
Please fix CI issues |
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

🤖 PR Validation —⚠️ Review suggested
This PR adds warning or check suppressions. Fix the underlying warning where possible and justify each remaining suppression in a code comment or the PR description.
22 added suppressions
src/azure-cli/azure/cli/command_modules/appservice/_active_backup.py# pylint: disable=protected-access,too-few-public-methodssrc/azure-cli/azure/cli/command_modules/appservice/linter_exclusions.yml- require_wait_command_if_no_waitsrc/azure-cli/azure/cli/command_modules/appservice/linter_exclusions.yml- require_wait_command_if_no_waitsrc/azure-cli/azure/cli/command_modules/appservice/linter_exclusions.yml- parameter_should_not_end_in_resource_groupsrc/azure-cli/azure/cli/command_modules/appservice/linter_exclusions.yml- require_wait_command_if_no_waitsrc/azure-cli/azure/cli/command_modules/appservice/linter_exclusions.yml- require_wait_command_if_no_waitsrc/azure-cli/azure/cli/command_modules/appservice/linter_exclusions.yml- require_wait_command_if_no_waitsrc/azure-cli/azure/cli/command_modules/appservice/linter_exclusions.yml- parameter_should_not_end_in_resource_groupsrc/azure-cli/azure/cli/command_modules/appservice/linter_exclusions.yml- parameter_should_not_end_in_resource_groupsrc/azure-cli/azure/cli/command_modules/appservice/linter_exclusions.yml- parameter_should_not_end_in_resource_groupsrc/azure-cli/azure/cli/command_modules/appservice/linter_exclusions.yml- parameter_should_not_end_in_resource_groupsrc/azure-cli/azure/cli/command_modules/appservice/linter_exclusions.yml- parameter_should_not_end_in_resource_groupsrc/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_active_backup_custom.pyself.client._request.side_effect = self._make_request # pylint: disable=protected-accesssrc/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_active_backup_custom.pyself.assertEqual(schema.name._options, ['-n', '--name']) # pylint: disable=protected-accesssrc/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_active_backup_custom.pyself.assertEqual(schema.silo_name._options, ['--silo']) # pylint: disable=protected-accesssrc/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_active_backup_custom.pyself.assertEqual( # pylint: disable=protected-accesssrc/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_active_backup_custom.pyself.assertFalse(generated_schema.primary_location._required) # pylint: disable=protected-accesssrc/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_active_backup_custom.pyself.assertTrue(custom_schema.primary_location._required) # pylint: disable=protected-accesssrc/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_active_backup_custom.pyself.assertIsNone(custom_schema.name._id_part) # pylint: disable=protected-accesssrc/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_active_backup_custom.pyself.assertEqual(generated_schema.name._id_part, 'name') # pylint: disable=protected-accesssrc/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_active_backup_custom.pyself.assertFalse(patch_schema[field]._nullable) # pylint: disable=protected-accesssrc/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_active_backup_scenarios.pyself.skipTest('Live Active Backup recording requires explicit approval.')Related command
Description
Testing Guide
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.