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

Đang mở
#34,355 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
azure, python
Lĩnh vực
cli

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Python
Star
4.7k
Fork
3.5k
Merge trung bình
4 ngày 14 giờ
Pull request đã merge (30 ngày)
92

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Azure/azure-cli

Tất cả issue của Azure/azure-cli

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.