This template creates a VM from a specialized VHD and let you connect it to a new or existing VNET that can reside in another Resource Group than the virtual machine
Esta plantilla de Azure Resource Manager (ARM) la creó un miembro de la comunidad, no Microsoft. Su propietario (no Microsoft) le permite usar las plantillas de ARM con arreglo a un contrato de licencia. Microsoft no se responsabiliza de ninguna plantilla de ARM que le proporcionen los miembros de la comunidad (o cuya licencia le otorguen) en cuanto a su seguridad, compatibilidad ni rendimiento. Las plantillas de ARM de la comunidad no reciben ningún tipo de soporte en ningún servicio ni programa de soporte de Microsoft. Dichas plantillas se proporcionan TAL CUAL, sin garantía de ningún tipo.
Parámetros
Nombre del parámetro | Descripción |
---|---|
vmName | Name of the VM |
osType | Type of OS on the existing vhd |
osDiskVhdUri | Uri of the existing VHD in ARM standard or premium storage |
vmSize | Size of the VM |
vNetNewOrExisting | Specify whether to create a new or existing virtual network for the VM. |
virtualNetworkName | Name of the existing VNET |
virtualNetworkResourceGroup | Name of the existing VNET resource group |
subnetName | Name of the subnet in the virtual network you want to use |
dnsNameForPublicIP | Unique DNS Name for the Public IP used to access the Virtual Machine. |
location | Location for all resources. |
Uso de la plantilla
PowerShell
New-AzureRmResourceGroupDeployment -Name <deployment-name> -ResourceGroupName <resource-group-name> -TemplateUri https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/201-vm-specialized-vhd-new-or-existing-vnet/azuredeploy.jsonInstalar y configurar PowerShell de Azure
Línea de comandos
azure config mode armInstalación y configuración de la interfaz de línea de comandos multiplataforma de Azure
azure group deployment create <my-resource-group> <my-deployment-name> --template-uri https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/201-vm-specialized-vhd-new-or-existing-vnet/azuredeploy.json