使用 Azure 存储资源管理器管理 Azure 托管磁盘Use Azure Storage Explorer to manage Azure managed disks

存储资源管理器 1.10.0 可让用户上传、下载和复制托管磁盘,以及创建快照。Storage Explorer 1.10.0 enables users to upload, download, and copy managed disks, as well as create snapshots. 由于具有这些附加功能,存储资源管理器使你能够将数据从本地迁移到 Azure,并可以跨 Azure 区域迁移数据。Because of these additional capabilities, you can use Storage Explorer to migrate data from on-premises to Azure, and migrate data across Azure regions.

先决条件Prerequisites

若要完成本文,需要做好以下准备:To complete this article, you'll need the following:

连接到 Azure 订阅Connect to an Azure subscription

如果存储资源管理器未连接到 Azure,则将无法使用它来管理资源。If your Storage Explorer isn't connected to Azure, you will not be able to use it to manage resources. 本部分介绍如何将存储资源管理器连接到 Azure 帐户,以便可以使用它来管理资源。This section goes over connecting it to your Azure account so that you can manage resources using Storage Explorer.

  1. 启动 Azure 存储资源管理器并单击左侧的插件图标。Launch Azure Storage Explorer and click the plug-in icon on the left.

    单击插件图标

  2. 选择“添加 Azure 帐户”,然后单击“下一步”。 Select Add an Azure Account, and then click Next.

    添加 Azure 帐户

  3. 在“Azure 登录”对话框中输入 Azure 凭据。 In the Azure Sign in dialog box, enter your Azure credentials.

    Azure 登录对话框

  4. 从列表中选择你的订阅,然后单击“应用”。Select your subscription from the list and then click Apply.

    选择订阅 Select your subscription

从本地 VHD 上传托管磁盘Upload a managed disk from an on-prem VHD

  1. 在左窗格中,展开“磁盘”并选择要将磁盘上传到的资源组。 On the left pane, expand Disks and select the resource group that you want to upload your disk to.

    选择资源组 1

  2. 选择“上传”。Select Upload.

    选择“上传”

  3. 在“上传 VHD”中,指定源 VHD、磁盘名称、OS 类型、要将磁盘上传到的区域,以及帐户类型。 In Upload VHD specify your source VHD, the name of the disk, the OS type, the region you want to upload the disk to, as well as the account type. 对于支持可用性区域的某些地区,可以选择所选的区域。In some regions Availability zones are supported, for those regions you can select a zone of your choice.

  4. 选择“创建”开始上传磁盘。 Select Create to begin uploading your disk.

    上传 VHD 对话框

  5. 现在,上传状态会显示在“活动”中。 The status of the upload will now display in Activities.

    上传状态

  6. 如果上传已完成但右窗格中未显示该磁盘,请选择“刷新”。 If the upload has finished and you don't see the disk in the right pane, select Refresh.

下载托管磁盘Download a managed disk

以下步骤说明如何将托管磁盘下载到本地 VHD。The following steps explain how to download a managed disk to an on-prem VHD. 只能下载状态为“未附加”的磁盘,而无法下载状态为“已附加”的磁盘。 A disk's state must be Unattached in order to be downloaded, you cannot download an Attached disk.

  1. 在左窗格中展开“磁盘”(如果尚未展开),并选择要从中下载磁盘的资源组。 On the left pane, if it isn't already expanded, expand Disks and select the resource group that you want to download your disk from.

    选择资源组 1

  2. 在右窗格中选择要下载的磁盘。On the right pane, select the disk you want to download.

  3. 选择“下载”,然后选择磁盘的保存位置。 Select Download and then choose where you would like to save the disk.

    下载托管磁盘

  4. 选择“保存”,随即会开始下载磁盘。 Select Save and your disk will begin downloading. 下载状态将显示在“活动”中。 The status of the download will display in Activities.

    下载状态

复制托管磁盘Copy a managed disk

使用存储资源管理器可以在区域内部或跨区域复制托管磁盘。With Storage Explorer, you can copy a manged disk within or across regions. 若要复制磁盘:To copy a disk:

  1. 在左侧的“磁盘”下拉列表中,选择包含要复制的磁盘的资源组。 From the Disks dropdown on the left, select the resource group that contains the disk you want to copy.

    选择资源组 1

  2. 在右窗格中选择要复制的磁盘,然后选择“复制”。 On the right pane, select the disk you'd like to copy and select Copy.

    复制托管磁盘

  3. 在左窗格中,选择要将磁盘粘贴到的资源组。On the left pane, select the resource group you'd like to paste the disk in.

    选择资源组 2

  4. 在右窗格中选择“粘贴”。 Select Paste on the right pane.

    粘贴托管磁盘

  5. 在“粘贴磁盘”对话框中填写值。 In the Paste Disk dialog, fill in the values. 还可以指定受支持地区中的可用性区域。You can also specify an Availability zone in supported regions.

    “粘贴磁盘”对话框

  6. 选择“粘贴”,磁盘随即开始复制,复制状态会显示在“活动”中。 Select Paste and your disk will begin copying, the status is displayed in Activities.

    复制粘贴状态

创建快照Create a snapshot

  1. 在左侧的“磁盘”下拉列表中,选择要创建快照的磁盘所在的资源组。 From the Disks dropdown on the left, select the resource group that contains the disk you want to snapshot.

    选择资源组 1

  2. 在右侧选择要创建快照的磁盘,然后选择“创建快照”。 On the right, select the disk you'd like to snapshot and select Create Snapshot.

    创建快照

  3. 在“创建快照”中,指定快照名称,以及要在其中创建快照的资源组。 In Create Snapshot, specify the name of the snapshot as well as the resource group you want to create it in. 然后选择“创建” 。Then select Create.

    “创建快照”对话框

  4. 创建快照后,可以在“活动”中选择“在门户中打开”,以便在 Azure 门户中查看快照。 Once the snapshot has been created, you can select Open in Portal in Activities to view the snapshot in the Azure portal.

    在门户中打开快照

后续步骤Next steps

了解如何使用 Azure 门户基于 VHD 创建 VMLearn how to Create a VM from a VHD by using the Azure portal.

了解如何使用 Azure 门户将托管数据磁盘附加到 Windows VMLearn how to Attach a managed data disk to a Windows VM by using the Azure portal.