{App Service} az webapp deploy,az webapp up: Add friendly name used to identify the deployment - #33940
{App Service} az webapp deploy,az webapp up: Add friendly name used to identify the deployment#33940Shi1810 wants to merge 2 commits into
az webapp deploy,az webapp up: Add friendly name used to identify the deployment#33940Conversation
|
Hi Shi1810, |
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
There was a problem hiding this comment.
Pull request overview
Adds a --tag option to App Service deployment flows so users can attach a friendly, URL-safe identifier to deployments made via az webapp deploy (OneDeploy) and az webapp up (zip deploy). The implementation encodes the tag for URL usage, includes it in the appropriate request payload/URL, and explicitly warns/ignores the option for Windows web apps.
Changes:
- Add
--tagCLI argument towebapp upandwebapp deploy. - Propagate
tagthroughwebapp_up→enable_zip_deploy(zipdeploy query param) and throughperform_onedeploy_webapp→ OneDeploy URL/body. - Add unit tests validating URL encoding and Windows ignore/warning behavior.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_webapp_commands_thru_mock.py |
Adds tests for tag encoding and Linux-only behavior (warnings + omission on Windows). |
src/azure-cli/azure/cli/command_modules/appservice/custom.py |
Implements tag propagation, URL encoding, and Linux-only enforcement for zipdeploy/OneDeploy paths. |
src/azure-cli/azure/cli/command_modules/appservice/_params.py |
Exposes the new --tag argument on webapp up and webapp deploy. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Live test results —
|
There was a problem hiding this comment.
Automated Review Summary — PR #33940 (appservice)
All automated checks passed for the latest commit (5a9a4e8):
- CI: 53/53 checks passed, 0 failed, 0 pending.
- Live test (Tester):
azdev testrun against the changed test file completed successfully. - Regression coverage: Production changes in
appservice/_params.pyandappservice/custom.pyare covered by an updated test intest_webapp_commands_thru_mock.py. No coverage gap detected. - Human reviews: No outstanding change requests blocking merge.
No further automated action is needed at this time. A maintainer should perform the final human review/merge decision.
|
🔔 Routing this PR to @Azure/act-observability-squad. |
az webapp deploy,az webapp up: Add friendly name used to identify the deploymentaz webapp deploy,az webapp up: Add friendly name used to identify the deployment
🤖 PR Validation — ️✔️ All clear
Related command
az webapp upaz webapp deployDescription
This PR adds a capability to give friendly name to
az webapp deploy/upcommands via--tagto identify the deployment.Testing Guide
az webapp deploy -g shikhajhatestingrg -n cli-deploytag-linux-777924 --tag live-up-rerun-20260820 --src-path $env:TEMP\cli-deploytag-linux-777924.zip

History Notes
[App Service]
az webapp up/deploy: Add--tagparameter to give friendly name to deploymentThis 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.