[App Service] az webapp up: Add warning message for future deprecation#33410
Conversation
️✔️AzureCLI-FullTest
|
|
Hi @vageorge00, |
|
| rule | cmd_name | rule_message | suggest_message |
|---|---|---|---|
| webapp up | cmd webapp up added property deprecate_info_redirect |
|
Thank you for your contribution @vageorge00! We will review the pull request and get back to you soon. |
|
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>
|
… and `az webapp deploy` Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
5d9741c to
2c747a5
Compare
There was a problem hiding this comment.
Pull request overview
This PR adds a deprecation warning for az webapp up in the App Service command module so users are proactively guided toward supported alternatives before a future removal.
Changes:
- Marks
az webapp upas deprecated viadeprecate_infoon the command registration. - Provides a redirect hint pointing users to
webapp createandwebapp deploy.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Are there any other places where we potentially suggest using |
Good point, did a sweep, all of these seem out of scope for this PR. These mentions of az webapp up should be removed when fully deprecated. az webapp up is mentioned in the following files:
|
az webapp up in favor of az webapp create…az webapp up: Pre-announce deprecation
az webapp up: Pre-announce deprecationaz webapp up: Add warning message for future deprecation
Related command
az webapp up
Description
App Service Team is deprecating az webapp up. This command continues to function, this PR will only add a deprecation warning so az cli users are notified ahead of eventual removal.
Users will see a warning directing them to az webapp create and az webapp deploy.
No expiration version is set - this is a warning only phase.
Testing Guide
Ran az webapp -help to confirm az webapp up is deprecated in command group:

Ran az webapp up --help to confirm help shows it is deprecated:

Ran az webapp up --dryrun to show summary of the operation. Confirmed it shows it is deprecated:

azdev style appservice

azdev linter appservice

History Notes
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.