Import VHD Blobs from a ZIP Archive URL

Azure Public Test Date Azure Public Test Result

Azure US Gov Last Test Date Azure US Gov Last Test Result

Best Practice Check Cred Scan Check

Deploy to Azure Deploy to Azure Gov Visualize

To deploy Virtual Machines based on specialized disk images you need to import VHD files into a Storage Account, and those VHD can come from various sources.

In the case there are multiple VHD files compressed in a single ZIP and you got the URL to fetch the ZIP archive, this ARM template will ease the job: Download, Extract and Import into an existing Storage Account Blob Container.

Prerequisites

  • URL of a ZIP Archive containing VHD files

  • URI of a Storage Account Blob Container with a SAS Token granting write permissions

Usage

It is simple to use directly to do a quick manual import.

Hit the "Deploy to Azure" button above to open in the Azure Portal, simply fill the Source parameter with the URL of the ZIP Archive and the Destination with the URI of the Blob Container and launch the deployment.

When the deployment is done, you can start to use the .VHD blobs that have been imported in the Storage Account, for example creating Disk or Image resources and then Virtual Machines.

Demo

The ARM Template of the Riverbed Community Cookbooks simple demo for NetIM is an example where the storage-import-zipped-vhds template is nested to fecth the VHD required to create some specialized Virtual Machines.

Notes

Tags: storage, import, vhd, specialized image, Microsoft.ManagedIdentity/userAssignedIdentities, Microsoft.Authorization/roleAssignments, Microsoft.Resources/deploymentScripts, UserAssigned, Microsoft.Storage/storageAccounts, blobServices/containers, Microsoft.KeyVault/vaults, Microsoft.KeyVault/vaults/secrets