az deployment: show a readable summary of deployment errors by default, with raw JSON on request

Aperta
#34,355 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
azure, python
Ambito
cli

Direzione di ricerca

Start by tracing the az deployment create commands named in the issue and finding where failed deployment errors are formatted. Check how --output json is handled so the existing machine readable output remains available. Done means the default output shows the top-level error and one line per inner error, with raw JSON still available on request.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Auto-Assign Azure Deployments Service Attention

Related command

az deployment sub create (and az deployment group create, az deployment mg create, az deployment tenant create)

Is your feature request related to a problem? Please describe.

When a deployment fails, the CLI prints the full error JSON, including the nested details arrays, as one long block. That's useful for tooling, but hard to scan when a person reads it in a terminal or a pipeline log. We heard this from a customer: machine-readable JSON is useful, but a readable default with a switch for raw JSON would be better.

Describe the solution you'd like

By default, print a short summary of a failed deployment: the top-level error code and message, then one line per inner error with its code, message and the resource it applies to. Keep the full JSON available behind a flag, or when --output json is set, so scripts that parse it keep working.

Describe alternatives you've considered

Parsing the error JSON with jq or PowerShell in each pipeline, which every team ends up writing for itself.

Additional context

Filed by the Azure Deployments PM team from customer feedback.

Lingua principale
Python
Stelle
4.7k
Fork
3.5k
Merge medio
4g 14h
PR unite (30g)
92

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Azure/azure-cli

Tutte le issue di Azure/azure-cli

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.