Create VM from a custom image in new storage account

Data ultimo aggiornamento: 25/03/2016

This template allows you to create a new Virtual Machine from a custom image on a new storage account deployed together with the storage account, which means the source image VHD must be transferred to the newly created storage account before that Virtual Machine is deployed. This is accomplished by the usage of a transfer virtual machine that is deployed and then uses a script via custom script extension to copy the source VHD to the destination storage account.

Questo modello di Azure Resource Manager è stato creato da un membro della community e non da Microsoft. Ogni modello di Azure Resource Manager viene concesso in licenza ai sensi di un contratto di licenza a cura del proprietario e non di Microsoft. Microsoft non è responsabile dei modelli di Azure Resource Manager forniti e concessi in licenza da membri della community e non ne verifica la sicurezza, la compatibilità o le prestazioni. I modelli di Azure Resource Manager della community non sono supportati nell'ambito di alcun programma o servizio di supporto tecnico Microsoft e vengono resi disponibili COSÌ COME SONO senza garanzie di alcun tipo.

Parametri

Nome parametro Descrizione
transferVmName Name of the Windows VM that will perform the copy of the VHD from a source storage account to the new storage account created in the new deployment, this is known as transfer vm.
vmSize VM size of new virtual machine that will be deployed from a custom image.
newVmName Name of the new VM deployed from the custom image.
customImageName Name of the VHD to be used as source syspreped/generalized image to deploy the VM. E.g. mybaseimage.vhd.
adminUsername Name of the local administrator account, this cannot be Admin, Administrator or root.
adminPassword Local administrator password, complex password is required, do not use any variation of the password word because it will be rejected.
sourceStorageAccountResourceGroup Resource group name of the source storage account.
sourceImageURI Full URIs for one or more custom images (VHDs) that should be copied to the deployment storage account to spin up new VMs from them. URLs must be comma separated.

Usa il modello

PowerShell

New-AzureRmResourceGroupDeployment -Name <deployment-name> -ResourceGroupName <resource-group-name> -TemplateUri https://raw.githubusercontent.com/azure/azure-quickstart-templates/master/201-vm-custom-image-new-storage-account/azuredeploy.json
Installare e configurare Azure PowerShell

Riga di comando

azure config mode arm
azure group deployment create <my-resource-group> <my-deployment-name> --template-uri https://raw.githubusercontent.com/azure/azure-quickstart-templates/master/201-vm-custom-image-new-storage-account/azuredeploy.json
Installare e configurare l'interfaccia della riga di comando multipiattaforma di Azure

Altri modelli di Paulo Marques