Conversation
️✔️AzureCLI-FullTest
|
|
Hi @Shi1810, |
️✔️AzureCLI-BreakingChangeTest
|
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
|
The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR. Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions). pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>
|
There was a problem hiding this comment.
Pull request overview
Updates az webapp create (Linux path) to provide a clearer, more actionable error when none of the required runtime/container options are provided, guiding users to discover supported runtimes.
Changes:
- Add a dedicated
ArgumentUsageErrorwhen creating a Linux webapp without specifying any of the runtime/container selection options. - Include guidance to run
az webapp list-runtimesto discover supported Linux runtimes.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Related command
az webapp createDescription
The old message is misleading - it tells users to "specify both --multicontainer-config-type and --multicontainer-config-file" when they simply forgot --runtime. The new message clearly lists all valid options and tells them how to discover available runtimes.
Add error message that clearly lists all valid options and tells them how to discover available runtimes.
Testing Guide

Before:
After:
ERROR: Creating a Linux webapp requires one of the following: --runtime, --container-image-name, or --sitecontainers-app. Run 'az webapp list-runtimes --os-type linux' for supported runtimes. For custom containers, see 'az webapp sitecontainers create': https://learn.microsoft.com/cli/azure/webapp/sitecontainers
History Notes
az webapp create: Add error message that clearly lists all valid options and specifies how to discover available runtimesThis 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.