@@ -3,7 +3,7 @@ title: Download Azure managed disk to Azure Local
3
3
description : Learn how to download Azure managed disk to Azure Local.
4
4
author : alkohli
5
5
ms.topic : how-to
6
- ms.date : 11/14 /2024
6
+ ms.date : 11/15 /2024
7
7
ms.author : alkohli
8
8
ms.service : azure-stack-hci
9
9
---
@@ -24,28 +24,28 @@ Before you begin, make sure to complete the following prerequisites:
24
24
25
25
## Download an Azure managed disk
26
26
27
- To download a data disk from Azure, first generate a SAS URL of the disk using Azure CLI:
27
+ Download an Azure managed disk as follows:
28
28
29
- ``` azurecli
30
- az disk grant-access --access-level Read --duration-in-seconds 3600 --name MyManagedDisk --resource-group $rg
31
- ```
29
+ 1 . Set parameters for your subscription, resource group, disk name, and custom location. Replace the parameters in ` < > ` with the appropriate values:
32
30
33
- Once the SAS URL is generated, use the following command to download it to your Azure Local:
31
+ ``` azurecli
32
+ $subscription = "<Subscription ID>"
33
+ $resource-group = "<Resource group>"
34
+ $name = "<Data disk name>"
35
+ $customLocation = "<Custom location resource ID>"
36
+ ```
34
37
35
- ``` azurecli
36
- az stack-hci-vm disk create -resource-group $rg --disk-file-format vhd --custom-location $cl --download-url $encodedUrl --name httpvhd02
37
- ```
38
+ 1. Generate a SAS URL of the disk using Azure CLI:
38
39
39
- Set parameters for your subscription, resource group, location, disk, and SAS URL. Replace the parameters in ` < > ` with the appropriate values.
40
+ ```azurecli
41
+ az disk grant-access --access-level Read --duration-in-seconds 3600 --name MyManagedDisk --resource-group $rg
42
+ ```
40
43
41
- ``` azurecli
42
- $subscription = "<Subscription ID>"
43
- $resource-group = "<Resource group>"
44
- $name = "<Data disk name>"
45
- $customLocation = "<Custom location resource ID>"
46
- $disk-file-format = "<Data disk file format>"
47
- $download-url = "<SAS URL>"
48
- ```
44
+ 1. Once the SAS URL is generated, use the following command to download it to your Azure Local:
45
+
46
+ ```azurecli
47
+ az stack-hci-vm disk create -resource-group $rg --disk-file-format vhd --custom-location $cl --download-url $encodedUrl --name httpvhd02
48
+ ```
49
49
50
50
The parameters are described in the following table:
51
51
0 commit comments