[App Service] az appservice plan create: Add enriched failure logs for quicker resolution#33642
Open
Shi1810 wants to merge 3 commits into
Open
[App Service] az appservice plan create: Add enriched failure logs for quicker resolution#33642Shi1810 wants to merge 3 commits into
az appservice plan create: Add enriched failure logs for quicker resolution#33642Shi1810 wants to merge 3 commits into
Conversation
️✔️AzureCLI-FullTest
|
|
Hi @Shi1810, |
|
| rule | cmd_name | rule_message | suggest_message |
|---|---|---|---|
| appservice plan create | cmd appservice plan create added parameter enriched_errors |
Collaborator
|
App Service |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR introduces context-enriched diagnostics for az appservice plan create failures, aiming to surface clearer error codes and actionable remediation steps when plan creation fails in ARM/control-plane operations.
Changes:
- Adds a new
--enriched-errorsflag toaz appservice plan createand wires it into the plan creation flow. - Introduces control-plane failure patterns + matching logic for common ARM failures (quota/SKU/location/authorization/etc.).
- Adds a plan-create-specific enriched error context builder/formatter and raises an
EnrichedDeploymentErrorwith the enriched message.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
src/azure-cli/azure/cli/command_modules/appservice/custom.py |
Adds enriched error raising for plan create failures behind a new flag. |
src/azure-cli/azure/cli/command_modules/appservice/_params.py |
Exposes the new --enriched-errors parameter for appservice plan create. |
src/azure-cli/azure/cli/command_modules/appservice/_deployment_failure_patterns.py |
Adds control-plane failure patterns and matching logic for plan-create scenarios. |
src/azure-cli/azure/cli/command_modules/appservice/_deployment_context_engine.py |
Adds plan-create enriched context/message formatting and a helper to raise enriched plan errors. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
added 2 commits
June 26, 2026 16:12
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.
Related command
az appservice plan createDescription
Currently, only raw error messages are logged in the event of command failures.
With this update, customers will have access to the --enriched-error feature flag, allowing them to view detailed failure logs and resolve errors more efficiently.
This feature flag will be available for the
az appservice plan createcommands.Note: these changes only impact linux os.
Testing Guide

az appservice plan create -g shikhajhatestingrg -n sjtest-plain-fail --sku B1 --location nowhereland
az appservice plan create -g shikhajhatestingrg -n sjtest-enriched-fail --sku B1 --location nowhereland --enriched-errors true

az appservice plan create -g shikhajhatestingrg -n sjtest-win-fail --sku B1 --hyper-v --location nowhereland --enriched-errors true

History Notes
[App Service]
az appservice plan create: Add--enriched-errorsparameter to see detailed failure logThis 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.