Bilješka
Pristup ovoj stranici zahtijeva provjeru vjerodostojnosti. Možete pokušati da se prijavite ili promijenite direktorije.
Pristup ovoj stranici zahtijeva provjeru vjerodostojnosti. Možete pokušati promijeniti direktorije.
Applies to: Multi-rack deployments of Azure Local 2511 and later
This article describes how to download an Azure managed disk from Azure to your Azure Local multi-rack instance. You can then use the disk to create an image or to attach it to your Azure Local virtual machines (VMs) enabled by Arc, as needed.
Prerequisites
Before you begin, make sure to complete the following prerequisites:
- You have access to an Azure Local multi-rack instance that is deployed and registered.
- There's already a managed disk in Azure.
Sign in and set subscription
Connect to a machine on your Azure Local instance.
Sign in and enter the following command:
az login --use-device-codeSet your subscription.
az account set --subscription <Subscription ID>
Set parameters
Set parameters for resource-group, name, and custom-location. Replace the parameters in < > with the appropriate values:
$resourceGroup = "<Resource group>"
$name = "<Data disk name>"
$customLocationID = "<Custom location resource ID>"
Download the managed disk
Generate a SAS URL of the disk using Azure CLI:
$downloadUrl = (az disk grant-access --access-level Read --duration-in-seconds 3600 --name $name --resource-group $resourceGroup --query accessSas -o tsv)Once the SAS URL is generated, use the following command to download it to your Azure Local multi-rack instance:
az stack-hci-vm disk create --resource-group $resourceGroup --custom-location $customLocationID --download-url $downloadUrl --name $name
The parameters are described in the following table:
| Parameter | Description |
|---|---|
resource-group |
Resource group for Azure Local that you associate with this disk. |
name |
Name of the data disk for Azure Local. |
custom-location |
Resource ID of the custom location for Azure Local. |
download-url |
SAS URL of the Azure managed disk. |