diff --git a/src/Storage/Storage.Management/ChangeLog.md b/src/Storage/Storage.Management/ChangeLog.md index 6aa8376c75fd..1cca60b83c14 100644 --- a/src/Storage/Storage.Management/ChangeLog.md +++ b/src/Storage/Storage.Management/ChangeLog.md @@ -18,6 +18,8 @@ - Additional information about change #1 --> ## Upcoming Release +* Show RequestId when StorageException don't have ExtendedErrorInformation +* Fix the Example 6 of cmdlet Start-AzStorageBlobCopy ## Version 1.11.0 * Add breaking change warning message for DefaultAction Value change in a future release diff --git a/src/Storage/Storage.Management/help/Start-AzStorageBlobCopy.md b/src/Storage/Storage.Management/help/Start-AzStorageBlobCopy.md index fd34e6aeb935..dd6325bf93dd 100644 --- a/src/Storage/Storage.Management/help/Start-AzStorageBlobCopy.md +++ b/src/Storage/Storage.Management/help/Start-AzStorageBlobCopy.md @@ -161,12 +161,12 @@ This command creates a context for the account named ContosoGeneral that uses th The second command copies the file from the specified URI to the blob named ContosoPlanning in the container named ContosoArchive. The command starts the copy operation in the context stored in $Context. -### Example 6: Copy a block blob to destination container with a new blob name, and set destination blob StandardBlobTier as Archive, RehydratePriority as High +### Example 6: Copy a block blob to destination container with a new blob name, and set destination blob StandardBlobTier as Hot, RehydratePriority as High ``` -C:\PS>Start-AzStorageBlobCopy -SrcContainer "ContosoUploads" -SrcBlob "BlockBlobName" -DestContainer "ContosoArchives" -DestBlob "NewBlockBlobName" -StandardBlobTier Archive +C:\PS>Start-AzStorageBlobCopy -SrcContainer "ContosoUploads" -SrcBlob "BlockBlobName" -DestContainer "ContosoArchives" -DestBlob "NewBlockBlobName" -StandardBlobTier Hot -RehydratePriority High ``` -This command starts the copy operation of a block blob to destination container with a new blob name, and set destination blob StandardBlobTier as Archive, RehydratePriority as High +This command starts the copy operation of a block blob to destination container with a new blob name, and set destination blob StandardBlobTier as Hot, RehydratePriority as High ## PARAMETERS diff --git a/src/Storage/Storage/Common/StorageExceptionUtil.cs b/src/Storage/Storage/Common/StorageExceptionUtil.cs index ad4adbd855ee..b86224c5a9b5 100644 --- a/src/Storage/Storage/Common/StorageExceptionUtil.cs +++ b/src/Storage/Storage/Common/StorageExceptionUtil.cs @@ -97,6 +97,16 @@ public static StorageException RepackStorageException(this StorageException e) } msg += extendErrorInfo; } + else + { + String errorInfo = String.Format( + "\nErrorCode: {0}\nErrorMessage: {1}\nRequestId: {2}\nTime: {3}", + e.RequestInformation.ErrorCode, + e.RequestInformation.HttpStatusMessage, + e.RequestInformation.ServiceRequestID, + e.RequestInformation.RequestDate); + msg += errorInfo; + } e = new StorageException(e.RequestInformation, msg, e); } return e;