Skip to content

[App Service] Add site and serverfarm silo commands and related entities - #34356

Merged
Ethan Yang (necusjz) merged 8 commits into
Azure:devfrom
cmriachi:feature-pitbull-commands
Nov 6, 2026
Merged

Ethan Yang (necusjz) merged 8 commits into
Azure:devfrom
cmriachi:feature-pitbull-commands

Conversation

@cmriachi

@cmriachi cmriachi commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

🤖 PR Validation — ⚠️ Review suggested

Breaking Changes Tests Suppressions
⚠️ None ️✔️ 130/130 ⚠️ 22 added
⚠️AzureCLI-BreakingChangeTest
⚠️appservice
rule cmd_name rule_message suggest_message
⚠️ 1011 - SubgroupAdd appservice plan silo sub group appservice plan silo added
⚠️ 1011 - SubgroupAdd webapp last-known-good sub group webapp last-known-good added
⚠️ 1011 - SubgroupAdd webapp managed-traffic sub group webapp managed-traffic added
⚠️ 1011 - SubgroupAdd webapp silo sub group webapp silo added

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
File Line Kind Code
src/azure-cli/azure/cli/command_modules/appservice/_active_backup.py 26 pylint # pylint: disable=protected-access,too-few-public-methods
src/azure-cli/azure/cli/command_modules/appservice/linter_exclusions.yml 7 linter exclusion - require_wait_command_if_no_wait
src/azure-cli/azure/cli/command_modules/appservice/linter_exclusions.yml 11 linter exclusion - require_wait_command_if_no_wait
src/azure-cli/azure/cli/command_modules/appservice/linter_exclusions.yml 24 linter exclusion - parameter_should_not_end_in_resource_group
src/azure-cli/azure/cli/command_modules/appservice/linter_exclusions.yml 28 linter exclusion - require_wait_command_if_no_wait
src/azure-cli/azure/cli/command_modules/appservice/linter_exclusions.yml 32 linter exclusion - require_wait_command_if_no_wait
src/azure-cli/azure/cli/command_modules/appservice/linter_exclusions.yml 36 linter exclusion - require_wait_command_if_no_wait
src/azure-cli/azure/cli/command_modules/appservice/linter_exclusions.yml 50 linter exclusion - parameter_should_not_end_in_resource_group
src/azure-cli/azure/cli/command_modules/appservice/linter_exclusions.yml 56 linter exclusion - parameter_should_not_end_in_resource_group
src/azure-cli/azure/cli/command_modules/appservice/linter_exclusions.yml 68 linter exclusion - parameter_should_not_end_in_resource_group
src/azure-cli/azure/cli/command_modules/appservice/linter_exclusions.yml 74 linter exclusion - parameter_should_not_end_in_resource_group
src/azure-cli/azure/cli/command_modules/appservice/linter_exclusions.yml 80 linter exclusion - parameter_should_not_end_in_resource_group
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_active_backup_custom.py 74 pylint self.client._request.side_effect = self._make_request # pylint: disable=protected-access
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_active_backup_custom.py 137 pylint self.assertEqual(schema.name._options, ['-n', '--name']) # pylint: disable=protected-access
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_active_backup_custom.py 139 pylint self.assertEqual(schema.silo_name._options, ['--silo']) # pylint: disable=protected-access
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_active_backup_custom.py 332 pylint self.assertEqual( # pylint: disable=protected-access
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_active_backup_custom.py 335 pylint self.assertFalse(generated_schema.primary_location._required) # pylint: disable=protected-access
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_active_backup_custom.py 336 pylint self.assertTrue(custom_schema.primary_location._required) # pylint: disable=protected-access
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_active_backup_custom.py 338 pylint self.assertIsNone(custom_schema.name._id_part) # pylint: disable=protected-access
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_active_backup_custom.py 339 pylint self.assertEqual(generated_schema.name._id_part, 'name') # pylint: disable=protected-access
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_active_backup_custom.py 344 pylint self.assertFalse(patch_schema[field]._nullable) # pylint: disable=protected-access
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_active_backup_scenarios.py 22 skipped test self.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 feature


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

Copilot AI balanced review requested due to automatic review settings November 5, 2026 00:01
@microsoft-github-policy-service microsoft-github-policy-service Bot added the customer-reported Issues that are reported by GitHub users external to the Azure organization. label Nov 5, 2026
@microsoft-github-policy-service

Copy link
Copy Markdown
Contributor

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

@cmriachi

cmriachi commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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 plan and webapp, 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

@yonzhan

Copy link
Copy Markdown
Collaborator

Please fix CI issues

@cmriachi cmriachi changed the title Add site and serverfarm silo commands and their related entities [AppService] Add site and serverfarm silo commands and related entities Nov 5, 2026
@necusjz Ethan Yang (necusjz) changed the title [AppService] Add site and serverfarm silo commands and related entities [App Service] Add site and serverfarm silo commands and related entities Nov 6, 2026
@necusjz
Ethan Yang (necusjz) merged commit 3adf460 into Azure:dev Nov 6, 2026
52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

customer-reported Issues that are reported by GitHub users external to the Azure organization.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants