[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
Conversation
|
Hi Shi1810, |
microsoft-github-policy-service
Bot
requested review from
Yu Chen (jsntcy),
ZelinWang (wangzelin007),
Julie Zhu (yanzhudd) and
Yong Zhang (yonzhan)
September 24, 2026 15:02
Contributor
|
Thank you for your contribution Shi1810! We will review the pull request and get back to you soon. |
az webapp deploy, az webapp secure-build show, az webapp troubleshoot deployment: Add Secure Build and deployment troubleshooting commandsaz webapp deploy, az webapp secure-build show, az webapp troubleshoot deployment: Add Secure Build and deployment troubleshooting commands
Contributor
There was a problem hiding this comment.
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 showandtroubleshoot deployment. - Adds
--show-secure-buildtoaz 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.
Collaborator
|
App Service |
This branch has not been deployed
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 —⚠️ Review suggested
Related command
az webapp deployaz webapp secure-build showaz webapp troubleshoot deploymentDescription
Adds Secure Build support for Linux Python web apps and deployment troubleshooting commands.
Adds
az webapp secure-build showto show the cached report for the active deployment, including optional--rescanto 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
az webapp secure-build show --resource-group shikhajhatestingrg --name shikhajha-securebuild-euap-2 --output table

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

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

History Notes
[AppService]
az webapp deploy: Add--show-secure-buildto deploy and display the secure build summary afterward[AppService]
az webapp secure-build show: Add--rescanto force fresh dependency analysis[AppService]
az webapp troubleshoot deployment: Add command to diagnose the latest 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.