Azure 托管磁盘。访问底层 blob?

标签 azure azure-storage azure-blob-storage azure-resource-manager

是否可以访问 Azure 托管磁盘中的 blob?如果说,我需要将其复制到另一个存储帐户(常规存储帐户)。由于托管存储目前仅支持 LRS。

最佳答案

If say ,I needed to copy it to another storage account(regular storage account).

You should understand the difference between managed disks and unmanaged disks. With unmanaged disks, you had to create storage accounts to hold the disks (VHD files) for your Azure VMs. When scaling up, you had to make sure you created additional storage accounts so you didn’t exceed the IOPS limit for storage with any of your disks. With Managed Disks handling storage, you are no longer limited by the storage account limits (such as 20,000 IOPS / account). You also no longer have to copy your custom images (VHD files) to multiple storage accounts. You can manage them in a central location – one storage account per Azure region – and use them to create hundreds of VMs in a subscription. More information please refer to this link.

更新:

您可以使用以下 cmdlet 将托管磁盘复制到您的私有(private)存储帐户。

$sas = Grant-AzureRmDiskAccess -ResourceGroupName shui -DiskName shuitest -DurationInSecond 3600 -Access Read 
$destContext = New-AzureStorageContext –StorageAccountName contosostorageav1 -StorageAccountKey 'YourStorageAccountKey' 
Start-AzureStorageBlobCopy -AbsoluteUri $sas.AccessSAS -DestContainer 'vhds' -DestContext $destContext -DestBlob 'MyDestinationBlobName.vhd'

关于Azure 托管磁盘。访问底层 blob?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42635857/

相关文章:

java - 如何用java检查文件是否存在于Azure Blob容器中

c# - 在 Azure Service Fabric 中运行时更改配置

Azure - 多个云服务,单个存储帐户

azure - 是否可以恢复被覆盖的 azure blob 存储文件?

performance - Azure 存储的下载速度慢

c# - Azure函数版本2.0-应用程序blobTrigger不工作

azure - 在 ASP.Net Core 网站中嵌入 Power BI 报告

使用 Gremlin.Net 的 Azure Cosmos DB - 提交查询时出错

c# - 尝试在 azure 存储帐户/Blob 上设置 cors 时出现无尽错误

azure - 通过Proxy .net core连接Azure存储