Repository navigation
[App Service] az webapp up: Deprecate support for the command - #34344
mansoor sarfraz (msarfraz) merged 5 commits into
Conversation
Block command execution before deployment, preserve the legacy implementation, and keep only global options visible in retirement help. Add regression coverage and retire obsolete deployment scenarios. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…shikhajha/deprecatewebappup
|
Thank you for your contribution Shi1810! We will review the pull request and get back to you soon. |
az webapp up : Deprecate support for the command
There was a problem hiding this comment.
🟡 Changes recommended
The location converter still contacts Azure before the retirement validator runs, so unauthenticated or offline users can receive login or network errors instead of the retirement message.
1 open issue
What changed in this PR
Retires az webapp up in the App Service module while keeping the command discoverable and directing users to webapp create and webapp deploy.
Changes:
- Replaces deployment validation with a retirement error and removes native deprecation warnings.
- Hides legacy arguments and replaces deployment help with retirement guidance.
- Skips retired deployment scenarios and adds tests for rejection, help output, and replacement-command visibility.
| File | Description |
|---|---|
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_webapp_up_commands.py |
Skips retired end-to-end deployment scenarios. |
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py |
Skips the retired command’s enriched-error scenario. |
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_webapp_commands_thru_mock.py |
Adds retirement behavior and help regression tests. |
src/azure-cli/azure/cli/command_modules/appservice/commands.py |
Registers the retirement validator without deprecation metadata. |
src/azure-cli/azure/cli/command_modules/appservice/_validators.py |
Adds the retirement error and replacement guidance. |
src/azure-cli/azure/cli/command_modules/appservice/_params.py |
Hides legacy arguments while retaining parsing support. |
src/azure-cli/azure/cli/command_modules/appservice/_help.py |
Replaces deployment instructions with retirement guidance. |
Review effort: Balanced
az webapp up : Deprecate support for the commandaz webapp up: Deprecate support for the command
|
Please fix CI issues |
|
Shi1810 CI is green, and independent inspection confirmed no semantic code defect. Regression coverage for the retirement scenario remains unverified in the supplied evidence ( To addressTick each item as you address it.
Review detailsUpstream CI52/52 checks completed successfully. This is upstream CI evidence, not an Agent live-test result. Test validation
Focused validation: verify or rerun Legacy deployment scenarios are intentionally skipped at Automated recording concern evaluatedThe following deterministic finding was inspected and is not confirmed; its recording remediation is not applicable to this local rejection path. Risk assessment58/100 · High The High rating is driven by security-sensitive behavior, public CLI behavior, failure-handling behavior.
Ask the Agent Tick a box to queue an action. Requires write access to this repository.
|

🤖 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.
2 added suppressions
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py@unittest.skip("az webapp up is no longer supported; deployment scenarios are retired.")src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_webapp_up_commands.py@unittest.skip("az webapp up is no longer supported; deployment scenarios are retired.")Related command
az webapp upDescription
Remove support for 'az webapp up' command, it is deprecated and no longer supported for Azure web apps.
Testing Guide

History Notes
[App Service]
az webapp up: BREAKING CHANGE: Deprecateaz webapp upcommandThis 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.