Uredi

Download managed data disks to Azure Local multi-rack

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

  1. Connect to a machine on your Azure Local instance.

  2. Sign in and enter the following command:

    az login --use-device-code
    
  3. Set 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

  1. 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)
    
  2. 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.

Next steps