Skip to content

[App Service] az webapp deploy, az webapp secure-build show, az webapp troubleshoot deployment: Add Secure Build and deployment troubleshooting commands - #34130

Open
Shi1810 wants to merge 6 commits into
Azure:devfrom
Shi1810:user/shikhajha/securebuild
Open

Shi1810 wants to merge 6 commits into
Azure:devfrom
Shi1810:user/shikhajha/securebuild

Conversation

@Shi1810

@Shi1810 Shi1810 commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

🤖 PR Validation — ⚠️ Review suggested

Breaking Changes Tests
⚠️ None ️✔️ 130/130
⚠️AzureCLI-BreakingChangeTest
⚠️appservice
rule cmd_name rule_message suggest_message
⚠️ 1006 - ParaAdd webapp deploy cmd webapp deploy added parameter show_secure_build
⚠️ 1011 - SubgroupAdd webapp secure-build sub group webapp secure-build added
⚠️ 1001 - CmdAdd webapp troubleshoot deployment cmd webapp troubleshoot deployment added

Related command
az webapp deploy
az webapp secure-build show
az webapp troubleshoot deployment

Description

Adds Secure Build support for Linux Python web apps and deployment troubleshooting commands.

Adds az webapp secure-build show to show the cached report for the active deployment, including optional --rescan to force fresh dependency analysis.
Adds az webapp deploy --show-secure-build. --show-secure-build is opt-in because analysis can add several minutes. Deployment remains successful even if the report cannot be retrieved.
Adds az webapp troubleshoot deployment.
Includes links to detailed results in Kudu.
Adds help content and mocked test coverage.

Testing Guide
az webapp deploy --resource-group shikhajhatestingrg --name shikhajha-securebuild-euap-2 --src-path ..live-secure-build-vulnerable.zip --type zip --async false --show-secure-build
image

az webapp secure-build show --resource-group shikhajhatestingrg --name shikhajha-securebuild-euap-2 --output table
image

az webapp troubleshoot deployment --resource-group shikhajhatestingrg --name shikhajha-securebuild-euap -o json
image

az webapp troubleshoot deployment --resource-group shikhajhatestingrg --name shikhajha-securebuild-euap -o table
image

History Notes

[AppService] az webapp deploy: Add --show-secure-build to deploy and display the secure build summary afterward
[AppService] az webapp secure-build show: Add --rescan to force fresh dependency analysis
[AppService] az webapp troubleshoot deployment: Add command to diagnose the latest deployment


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

@Shi1810
Shi1810 requested a review from a team as a code owner September 24, 2026 15:02
Copilot AI lite review requested due to automatic review settings September 24, 2026 15:02
@azure-client-tools-bot-prd

Copy link
Copy Markdown

Hi Shi1810,
Since the current milestone time is less than 7 days, this pr will be reviewed in the next milestone.

@microsoft-github-policy-service microsoft-github-policy-service Bot added the customer-reported Issues that are reported by GitHub users external to the Azure organization. label Sep 24, 2026
@microsoft-github-policy-service

Copy link
Copy Markdown
Contributor

Thank you for your contribution Shi1810! We will review the pull request and get back to you soon.

@Shi1810 Shi1810 changed the title az webapp deploy, az webapp secure-build show, az webapp troubleshoot deployment: Add Secure Build and deployment troubleshooting commands [App Service] az webapp deploy, az webapp secure-build show, az webapp troubleshoot deployment: Add Secure Build and deployment troubleshooting commands Sep 24, 2026

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.

Copilot review overview

🔵 Needs a closer look

One or more issues must be addressed before approval.

Review effort: Lite
Findings: None

What changed in this PR

Adds Secure Build reporting and deployment troubleshooting commands for App Service web apps.

Changes:

  • Adds secure-build show and troubleshoot deployment.
  • Adds --show-secure-build to az webapp deploy.
  • Adds help content and mocked unit tests.
File Description
src/​azure-cli/​azure/​cli/​command_modules/​appservice/​tests/​latest/​test_webapp_commands_thru_mock.py Updated as part of this pull request.
src/​azure-cli/​azure/​cli/​command_modules/​appservice/​custom.py Updated as part of this pull request.
src/​azure-cli/​azure/​cli/​command_modules/​appservice/​commands.py Updated as part of this pull request.
src/​azure-cli/​azure/​cli/​command_modules/​appservice/​_params.py Updated as part of this pull request.
src/​azure-cli/​azure/​cli/​command_modules/​appservice/​_help.py Updated as part of this pull request.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@yonzhan

Copy link
Copy Markdown
Collaborator

App Service

This branch has not been deployed

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

Labels

act-observability-squad Auto-Assign Auto assign by bot customer-reported Issues that are reported by GitHub users external to the Azure organization. Web Apps az webapp

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants