Skip to content

Surface error codes, request-id and date to the error stream on error #2052

@peombwa

Description

@peombwa

Cmdlets should write the error code, request-id, and date of the failed request to the error stream to help with triaging and debugging. Cmdlets currently only show the error message of the failed request which makes it difficult for customers to know why an error occurred.

Proposal

Write error code, request-id, and date of the failed request to the error stream. The error stream should be populated with fields of the OData error resource type. See https://learn.microsoft.com/en-us/graph/errors for more details on service errors.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions