Skip to content

Commit 916ef4a

Browse files
committed
Kushmeen feedback
1 parent 1edda6b commit 916ef4a

File tree

1 file changed

+8
-90
lines changed

1 file changed

+8
-90
lines changed

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

Lines changed: 8 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@ ms.service: azure-stack-hci
1414

1515
This article describes how to download an Azure managed disk from Azure to your Azure Local instance. You can then use the disk to create an image or to attach it to your Arc virtual machines (VMs) as needed.
1616

17+
## Prerequisites
18+
19+
Before you begin, make sure to complete the following prerequisites:
20+
21+
- You have access to an Azure Local instance that is deployed and registered.
22+
- There is already a managed disk in Azure.
23+
24+
1725
## Download an Azure managed disk
1826

1927
To download a data disk from Azure, first generate a SAS URL of the disk using Azure CLI:
@@ -94,96 +102,6 @@ Download Uri for VHD is: https://*****
94102
  "
95103
```
96104

97-
### Create an image using an existing Arc VM
98-
99-
You can create a gallery image using an existing Arc VM. The OS disk of the Arc VM is used to create a gallery image on your Azure Local instance:
100-
101-
```azurecli
102-
az stack-hci-vm image create -resource-group $rg --location eastus2euap --custom-location $cl --os-type "Windows" --source-vm "testvm001" --name image03
103-
```
104-
105-
Set parameters for your subscription, resource group, location, disk, and SAS URL. Replace the parameters in `< >` with the appropriate values.
106-
107-
```azurecli
108-
$subscription = "<Subscription ID>"
109-
$resource-group = "<Resource group>"
110-
$name = "<Data disk name>"
111-
$customLocation = "<Custom location resource ID>"
112-
$disk-file-format = "<Data disk file format>"
113-
$download-url = "<SAS URL>"
114-
```
115-
116-
The parameters are described in the following table:
117-
118-
| Parameter | Description |
119-
| --- | --- |
120-
| subscription | Subscription associated with your Azure Local.
121-
| resource-group | Resource group for Azure Local that you associate with this image. |
122-
| name | Name of the data disk for Azure Local. |
123-
| customLocation | Resource ID of the custom location for Azure Local. |
124-
| disk-file-format | File format of the data disk. This can be .vhd or .vhdx format. |
125-
| download-url | SAS URL of the Azure managed disk.|
126-
127-
Here is an example output:
128-
129-
```azurecli
130-
{
131-
  "extendedLocation": {
132-
    "name": "/subscriptions/resourceGroups/providers/Microsoft.ExtendedLocation/customLocations/",
133-
    "type": "CustomLocation"
134-
  },
135-
  "id": "/subscriptions/resourceGroups/providers/Microsoft.AzureStackHCI/galleryImages/image03",
136-
  "location": "eastus2euap",
137-
  "name": "image03",
138-
  "properties": {
139-
    "cloudInitDataSource": null,
140-
    "containerId": null,
141-
    "hyperVGeneration": null,
142-
    "identifier": null,
143-
    "imagePath": null,
144-
    "osType": "Windows",
145-
    "provisioningState": "Succeeded",
146-
    "sourceVirtualMachineId": "/subscriptions/resourceGroups/providers/Microsoft.HybridCompute/machines/testvm001/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default",
147-
    "status": {
148-
      "downloadStatus": {
149-
        "downloadSizeInMb": null
150-
      },
151-
      "errorCode": "",
152-
      "errorMessage": "",
153-
      "progressPercentage": null,
154-
      "provisioningStatus": {
155-
        "operationId": null,
156-
        "status": null
157-
      }
158-
    },
159-
    "version": {
160-
      "name": null,
161-
      "properties": {
162-
        "storageProfile": {
163-
          "osDiskImage": {
164-
            "sizeInMb": null
165-
          }
166-
        }
167-
      }
168-
    }
169-
  },
170-
  "resourceGroup": "myresourcegrou",
171-
  "systemData": {
172-
    "createdAt": "2024-09-26T20:16:17.625002+00:00",
173-
    "createdBy": "mycreatedby",
174-
    "createdByType": "Application",
175-
    "lastModifiedAt": "2024-09-26T20:16:17.625002+00:00",
176-
    "lastModifiedBy": "mylastmodifiedby",
177-
    "lastModifiedByType": "Application"
178-
  },
179-
  "tags": null,
180-
  "type": "microsoft.azurestackhci/galleryimages"
181-
}
182-
```
183-
184-
Once the image is created, you can check the newly created image in Azure portal.
185-
186-
187105
## Next steps
188106

189107
[Create Azure Local VM image using images in a local share](virtual-machine-image-local-share.md)

0 commit comments

Comments
 (0)