File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ title: Download Azure managed disk to Azure Local
33description : Learn how to download Azure managed disk to Azure Local.
44author : alkohli
55ms.topic : how-to
6- ms.date : 11/15 /2024
6+ ms.date : 11/18 /2024
77ms.author : alkohli
88ms.service : azure-stack-hci
99---
@@ -38,13 +38,13 @@ Download an Azure managed disk as follows:
38381. Generate a SAS URL of the disk using Azure CLI:
3939
4040 ```azurecli
41- az disk grant-access --access-level Read --duration-in-seconds 3600 --name MyManagedDisk --resource-group $rg
41+ az disk grant-access --access-level Read --duration-in-seconds 3600 --name $name --resource-group $resource-group
4242 ```
4343
44441. Once the SAS URL is generated, use the following command to download it to your Azure Local:
4545
4646 ```azurecli
47- az stack-hci-vm disk create -resource-group $rg --disk-file-format vhd --custom-location $cl --download-url $encodedUrl --name httpvhd02
47+ az stack-hci-vm disk create -resource-group $resource-group --disk-file-format vhd --custom-location $customLocation --download-url $download-url --name $name
4848 ```
4949
5050The parameters are described in the following table:
@@ -55,7 +55,7 @@ The parameters are described in the following table:
5555| resource-group | Resource group for Azure Local that you associate with this image. |
5656| name | Name of the data disk for Azure Local. |
5757| customLocation | Resource ID of the custom location for Azure Local. |
58- | disk-file-format | File format of the data disk. This can be . vhd or . vhdx format . |
58+ | disk-file-format | File format of the data disk. This can be ` vhd` or ` vhdx` . |
5959| download-url | SAS URL of the Azure managed disk.|
6060
6161Here is an example output:
You can’t perform that action at this time.
0 commit comments