Skip to content

[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
Azure:devfrom
Shi1810:user/shikhajha/deploytag
Open

[App Service] az webapp deploy,az webapp up: Add friendly name used to identify the deployment#33940
Shi1810 wants to merge 2 commits into
Azure:devfrom
Shi1810:user/shikhajha/deploytag

Conversation

@Shi1810

@Shi1810 Shi1810 commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

🤖 PR Validation — ️✔️ All clear

Tests
️✔️ 130/130

Related command
az webapp up
az webapp deploy

Description

This PR adds a capability to give friendly name to az webapp deploy/up commands via --tag to 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
image

History Notes

[App Service] az webapp up: Add --tag parameter to give friendly name to deployment
[App Service] az webapp up: Add --tag parameter to give friendly name to deployment


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

@azure-client-tools-bot-prd

Copy link
Copy Markdown

Hi Shi1810,
Since the current milestone time is less than 7 days, this pr may not catch up with this release.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).

@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).

@Shi1810
Shi1810 marked this pull request as ready for review August 20, 2026 12:12
@Shi1810
Shi1810 requested a review from a team as a code owner August 20, 2026 12:12
Copilot AI lite review requested due to automatic review settings August 20, 2026 12:12
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

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.

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 --tag CLI argument to webapp up and webapp deploy.
  • Propagate tag through webapp_upenable_zip_deploy (zipdeploy query param) and through perform_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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants