Create VM from existing VHDs and connect it to existingVNET
- VHD files that you want to create a VM from already exists in a storage account.
- Name of the existing VNET and subnet you want to connect the new virtual machine to.
- Name of the Resource Group that the VNET resides in.
NOTE This template will create an additional Standard_LRS storage account for enabling boot diagnostics each time you execute this template. To avoid running into storage account limits, it's best to delete the storage account when the VM is deleted.
This template creates a VM from a specialized VHD and a data disk and let you connect it to an existing VNET that can reside in another Resource Group than the virtual machine.
Plese note: This deployment template does not create or attach an existing Network Security Group to the virtual machine.
Tags: Microsoft.Storage/storageAccounts, Microsoft.Network/publicIPAddresses, Microsoft.Network/networkInterfaces, Microsoft.Compute/disks, Microsoft.Compute/virtualMachines, Microsoft.Network/virtualNetworks