You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/virtual-machines/linux/disks-upload-vhd-to-managed-disk-cli.md
+5-9Lines changed: 5 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: Learn how to upload a VHD to an Azure managed disk and copy a manag
4
4
services: "virtual-machines,storage"
5
5
author: roygara
6
6
ms.author: rogarana
7
-
ms.date: 08/18/2023
7
+
ms.date: 08/25/2023
8
8
ms.topic: how-to
9
9
ms.service: azure-disk-storage
10
10
ms.custom: devx-track-azurecli
@@ -75,8 +75,12 @@ Replace `<yourdiskname>`, `<yourresourcegroupname>`, `<yourregion>` with values
75
75
>
76
76
> If you're using Azure AD to secure disk uploads, add `-dataAccessAuthmode 'AzureActiveDirectory'`.
77
77
> When uploading to an Ultra Disk or Premium SSD v2 you need to select the correct sector size of the target disk. If you're using a VHDX file with a 4k logical sector size, the target disk must be set to 4k. If you're using a VHD file with a 512 logical sector size, the target disk must be set to 512.
78
+
>
79
+
> VHDX files with logical sector size of 512k aren't supported.
78
80
79
81
```azurecli
82
+
##For Ultra Disk or Premium SSD v2, add --logical-sector-size and specify either 512 or 4096, depending on if you're using a VHD or VHDX
83
+
80
84
az disk create -n <yourdiskname> -g <yourresourcegroupname> -l <yourregion> --os-type Linux --for-upload --upload-size-bytes 34359738880 --sku standard_lrs
81
85
```
82
86
@@ -130,14 +134,6 @@ Replace `<yourdiskname>`and `<yourresourcegroupname>`, then use the following co
130
134
az disk revoke-access -n <yourdiskname> -g <yourresourcegroupname>
131
135
```
132
136
133
-
Ultra disk and Premium SSD v2 disk support both 4k sector size and 512e sector size (512-byte-emulation). When importing a VHD or VHDX file from on-premises to Azure, it is important to make sure the file format is compatible to target disk's sector size. Follow guidelines below to align the sector size of target disk with your VHD or VHDX file.
134
-
135
-
- Import a VHDX file with 4k logical sector size: Sector size of the target disk should be 4k
136
-
137
-
- Import a VHD file with 512 logical sector size: Sector size of the target disk should be 512e
138
-
139
-
Note that the import of VHDX file with logical sector size of 512k is not supported.
140
-
141
137
## Copy a managed disk
142
138
143
139
Direct upload also simplifies the process of copying a managed disk. You can either copy within the same region or cross-region (to another region).
Copy file name to clipboardExpand all lines: articles/virtual-machines/windows/disks-upload-vhd-to-managed-disk-powershell.md
+8-12Lines changed: 8 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Upload a VHD to Azure or copy a disk across regions - Azure PowerShell
3
3
description: Learn how to upload a VHD to an Azure managed disk and copy a managed disk across regions, using Azure PowerShell, via direct upload.
4
4
author: roygara
5
5
ms.author: rogarana
6
-
ms.date: 08/18/2023
6
+
ms.date: 08/25/2023
7
7
ms.topic: how-to
8
8
ms.service: azure-disk-storage
9
9
ms.tgt_pltfrm: linux
@@ -43,7 +43,7 @@ For detailed steps on assigning a role, see [Assign Azure roles using Azure Powe
43
43
44
44
There are two ways you can upload a VHD with the Azure PowerShell module: You can either use the [Add-AzVHD](/powershell/module/az.compute/add-azvhd) command, which will automate most of the process for you, or you can perform the upload manually with AzCopy.
45
45
46
-
Generally, you should use [Add-AzVHD](#use-add-azvhd). However, if youneed to upload a VHD that is larger than 50 GiB, consider [uploading the VHD manually with AzCopy](#manual-upload). VHDs 50 GiB and larger upload faster using AzCopy.
46
+
For Premium SSDs, Standard SSDs, and Standard HDDs, you should generally use [Add-AzVHD](#use-add-azvhd). However, if you're uploading to an Ultra Disk, or a Premium SSD v2, or if you need to upload a VHD that is larger than 50 GiB, you must [upload the VHD or VHDX manually with AzCopy](#manual-upload). VHDs 50 GiB and larger upload faster using AzCopy and Add-AzVhd doesn't currently support uploading to an Ultra Disk or a Premium SSD v2.
47
47
48
48
For guidance on how to copy a managed disk from one region to another, see [Copy a managed disk](#copy-a-managed-disk).
49
49
@@ -124,16 +124,20 @@ Replace `<yourdiskname>`, `<yourresourcegroupname>`, and `<yourregion>` then run
124
124
>
125
125
> If you're using Azure AD to secure your uploads, add `-dataAccessAuthMode 'AzureActiveDirectory'` to `New-AzDiskConfig`.
126
126
> When uploading to an Ultra Disk or Premium SSD v2 you need to select the correct sector size of the target disk. If you're using a VHDX file with a 4k logical sector size, the target disk must be set to 4k. If you're using a VHD file with a 512 logical sector size, the target disk must be set to 512.
127
+
>
128
+
> VHDX files with logical sector size of 512k aren't supported.
If you would like to upload either a premium SSD or a standard SSD, replace **Standard_LRS** with either **Premium_LRS** or **StandardSSD_LRS**. Ultra disks aren't currently supported.
140
+
If you would like to upload either a premium SSD or a standard SSD, replace **Standard_LRS** with either **Premium_LRS** or **StandardSSD_LRS**.
Now that you have a SAS for your empty managed disk, you can use it to set your managed disk as the destination for your upload command.
153
157
154
-
Use AzCopy v10 to upload your local VHD or VHDX file to a managed disk by specifying the SAS URI you generated.
158
+
Use AzCopy v10 to upload your local VHD or VHDX file to a managed disk by specifying the SAS URI you generated.
155
159
156
160
This upload has the same throughput as the equivalent [standard HDD](../disks-types.md#standard-hdds). For example, if you have a size that equates to S4, you will have a throughput of up to 60 MiB/s. But, if you have a size that equates to S70, you will have a throughput of up to 500 MiB/s.
157
161
@@ -167,14 +171,6 @@ Replace `<yourdiskname>`and `<yourresourcegroupname>`, then run the following co
Ultra disk and Premium SSD v2 disk support both 4k sector size and 512e sector size (512-byte-emulation). When importing a VHD or VHDX file from on-premises to Azure, it is important to make sure the file format is compatible to target disk's sector size. Follow guidelines below to align the sector size of target disk with your VHD or VHDX file.
171
-
172
-
- Import a VHDX file with 4k logical sector size: Sector size of the target disk should be 4k
173
-
174
-
- Import a VHD file with 512 logical sector size: Sector size of the target disk should be 512e
175
-
176
-
Note that the import of VHDX file with logical sector size of 512k is not supported.
177
-
178
174
## Copy a managed disk
179
175
180
176
Direct upload also simplifies the process of copying a managed disk. You can either copy within the same region or copy your managed disk to another region.
0 commit comments