Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/Storage/Storage.Management/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
10 changes: 10 additions & 0 deletions src/Storage/Storage/Common/StorageExceptionUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down