Skip to content

AzurePsCmdlet error handling for CloudException gives generic messages #1742

@begoldsm

Description

@begoldsm

In powershell, when a services throws a Microsoft.Rest.Azure.CloudException (from the AutoRest world) the message is populated as follows:
"Exception of type 'Microsoft.Rest.Azure.CloudException' was thrown." This is not a particularly useful message for the end user. After debugging, it appears that this is now how the CloudExceptions are thrown by default in AutoRest, with the actual message of the exception in the WebResponse.

This issue tracks fixing CloudException logging/reporting to be the same as it was previously with hyak generated clients that threw Hyak.Common.CloudExceptions.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions