powershell - Copy Blob from Azure to Local Storage with Start-AzureStorageBlobCopy -
i copy blob from "azure storage" "local storage" (emulator) powershell.
i using "start-azurestorageblobcopy"
it's working between "azure" "azure" storage. "azure" "local" (emulator) storage, blobs copied 0 byte. blobs created because can see them in storage explorer.
in azure storage explorer, have following properties :
- copyprogress: 0/34550784
- copystatus: failed
i've no error in powershell during copy. 0 bytes transferred
verbose: performing operation "copy" on target "https://xxxxx.blob.core.windows.net/aaaa.db". verbose: copy request blob 'aaaaaa.db' in container 'yyyyy' has been scheduled copyid 865e4d31-6729-44d1-997d-fdb76409d6cb. icloudblob : microsoft.windowsazure.storage.blob.cloudblockblob blobtype : blockblob length : 0 contenttype : lastmodified : 9/10/2017 2:10:45 pm +00:00 snapshottime : continuationtoken : context : microsoft.windowsazure.commands.storage.azurestoragecontext name : aaaaaa.db verbose: transfer summary -------------------------------- total: 1. successful: 1. failed: 0.
i don't think possible copy blob cloud storage account local emulator account using start-azurestorageblobcopy
cmdlet.
azure copy blob server-side asynchronous operation performed azure storage service. copy blob work, azure storage service should able reach destination. because destination account local storage account not accessible outside of machine, azure storage service never able reach destination.
one possible solution download blob , upload in local storage account using respective cmdlets.
another option use azcopy's sync copy blob functionality. sync copy blob implementation in azcopy download blob content source , uploads in target.
Comments
Post a Comment