我需要从StorageV2 (通用v2)下载多个存档文件,但我似乎首先需要将它们从存档重新补充到冷或热层。
在AzCopy中是否有一种方法(我正在使用AzCopy V10.10.0)来更改已经上载的文件层?
我非常喜欢AzCopy,因为它很容易与SAS令牌一起使用。提前谢谢你!
发布于 2021-06-04 14:19:05
您无法访问存储在存档层上的数据,除非首先对其进行重新补充。
您可以使用powershell将存档层复制到热层存储。然后,您将能够使用AzCopy进行复制。
#Initialize the following with your resource group, storage account, container, and blob names
$rgName = ""
$accountName = ""
$srcContainerName = ""
$destContainerName = ""
$srcBlobName = ""
$destBlobName = ""
#Select the storage account and get the context
$storageAccount =Get-AzStorageAccount -ResourceGroupName $rgName -Name $accountName
$ctx = $storageAccount.Context
#Copy source blob to a new destination blob with access tier hot using standard rehydrate priority
Start-AzStorageBlobCopy -SrcContainer $srcContainerName -SrcBlob $srcBlobName -DestContainer $destContainerName -DestBlob $destBlobName -StandardBlobTier Hot -RehydratePriority Standard -Context $ctxhttps://stackoverflow.com/questions/67837645
复制相似问题