Skip to content

Commit 876f70d

Browse files
committed
Alpa feedback
1 parent ee05627 commit 876f70d

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

azure-local/manage/manage-data-disks.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Download Azure managed disk to Azure Local
33
description: Learn how to download Azure managed disk to Azure Local.
44
author: alkohli
55
ms.topic: how-to
6-
ms.date: 11/14/2024
6+
ms.date: 11/15/2024
77
ms.author: alkohli
88
ms.service: azure-stack-hci
99
---
@@ -24,28 +24,28 @@ Before you begin, make sure to complete the following prerequisites:
2424

2525
## Download an Azure managed disk
2626

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:
2828

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:
3230

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+
```
3437
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:
3839
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+
```
4043
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+
```
4949
5050
The parameters are described in the following table:
5151

0 commit comments

Comments
 (0)