none
Copy from RA-GRS secondary using Start-AzureStorageBlobCopy

Answers

  • A colleague has shown me that this is actually possible. You just need to specify the secondary URI in the connection string of the storage context.

    Instead of trying to use the secondary URI in the srcuri of start-azurestorageblobcopy

    eg.

    $context2 = New-AzureStorageContext -ConnectionString "BlobEndpoint=https://$storeName-secondary.blob.core.windows.net/;QueueEndpoint=https://$storeName-secondary.queue.core.windows.net/;TableEndpoint=https://$storeName-secondary.table.core.windows.net/;FileEndpoint=https://$storeName-secondary.file.core.windows.net/;AccountName=$storeName;AccountKey=$($keys.primary)" 

    Start-AzureStorageBlobCopy -Context $context2 -ICloudBlob $blob2.ICloudBlob -DestContext $context3 -DestContainer "copiedvhds" -DestBlob "$blobName-test"


    Tuesday, June 16, 2015 11:00 PM

All replies

  • Hi Michael,

    As of now, copy from Secondary location for a RA-GRS is not implemented in Azure Powershell Cmdlets.

    You have to use AzCopy only.

    Regards,
    Manu

    Wednesday, June 10, 2015 5:26 PM
    Moderator
  • Is there any timeframes on when this will be available? Pretty disappointing

    When I explore the Object in PowerShell, I can see that there is no secondary URI listed which I assume is causing the problem in PowerShell.

    Is it possible to set the Secondary URI using the API, and then PowerShell will work?

    Wednesday, June 10, 2015 10:07 PM
  • A colleague has shown me that this is actually possible. You just need to specify the secondary URI in the connection string of the storage context.

    Instead of trying to use the secondary URI in the srcuri of start-azurestorageblobcopy

    eg.

    $context2 = New-AzureStorageContext -ConnectionString "BlobEndpoint=https://$storeName-secondary.blob.core.windows.net/;QueueEndpoint=https://$storeName-secondary.queue.core.windows.net/;TableEndpoint=https://$storeName-secondary.table.core.windows.net/;FileEndpoint=https://$storeName-secondary.file.core.windows.net/;AccountName=$storeName;AccountKey=$($keys.primary)" 

    Start-AzureStorageBlobCopy -Context $context2 -ICloudBlob $blob2.ICloudBlob -DestContext $context3 -DestContainer "copiedvhds" -DestBlob "$blobName-test"


    Tuesday, June 16, 2015 11:00 PM