Questions? Feedback? powered by Olark live chat software
Hoppa över navigering

Create VM from a custom image in new storage account

Senast uppdaterad: 2016-03-25

Kostnadsuppskattning

$208.349511

Beräknad kostnad per månad

Se hur beräkningen gick till och anpassa efter dina behov

Priskalkylator

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.

Den här ARM-mallen (Azure Resource Manager) skapades av en community-medlem, inte av Microsoft. Varje ARM-mall licensieras till dig enligt ett licensavtal av respektive ägare, inte Microsoft. Microsoft ansvarar inte för ARM-mallar som erbjuds och licensieras av community-medlemmar och undersöker inte mallarnas säkerhet, kompatibilitet eller prestanda. Microsofts supportprogram och supporttjänster omfattar inte support för ARM-mallar från community-medlemmar, och dessa mallar tillhandahålls i BEFINTLIGT SKICK utan någon form av garanti.

Parametrar

Parameternamn Beskrivning
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.

Använda mallen

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
Installera och konfigurera Azure PowerShell
Kommandoraden
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
Installera och konfigurera Azures plattformsoberoende kommandoradsgränssnitt

Fler mallar av Paulo Marques