[App Service] az webapp deploy,az webapp up: Add friendly name used to identify the deployment - #33940
Open
Shi1810 wants to merge 2 commits into
Open
[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#33940Shi1810 wants to merge 2 commits into
Conversation
|
Hi Shi1810, |
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
microsoft-github-policy-service
Bot
requested review from
Yu Chen (jsntcy),
ZelinWang (wangzelin007),
Julie Zhu (yanzhudd) and
Yong Zhang (yonzhan)
August 20, 2026 10:17
Member
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
Member
|
/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. |
Contributor
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 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: Add--tagparameter to give friendly name to deployment[App Service]
az webapp up: 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.