문제

I'm attempting to rename a blob to all lower case:

Rename-Blob -BlobUrl "https://ttseast.blob.core.windows.net/images/Add.png" -NewName "https://ttseast.blob.core.windows.net/images/add.png"

I've verified the blob URI by plugging it into a browser - however, attempting to execute the command tosses:

Rename-Blob : Blob URI does not correspond to storage account end point. A Blob URI must contain blob storage end point.

The arguments for Rename-Blob don't reference anything 'endpoint' - I've loaded the subscription so I should be authenticated and not forced to include AccountName/Key.

How to I determine (or set) the required end point?

thx

도움이 되었습니까?

해결책

If I'm not mistaken, I believe you're using Cerebrata Azure Management Cmdlets as Windows Azure PowerShell Cmdlets do not have a Rename-Blob Cmdlet (Cerebrata has it).

To use Rename-Blob cmdlet, please try the following:

Rename-Blob -BlobUrl "https://ttseast.blob.core.windows.net/images/Add.png" -NewName "https://ttseast.blob.core.windows.net/images/add.png" -AccountName "ttseast" -AccountKey "<your accountkey>"
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top