Questions? Feedback? powered by Olark live chat software
Spring over navigation

Create VM from a custom image in new storage account

Sidst opdateret: 25-03-2016

Omkostningsestimat

$208.349511

Anslåede månedlige omkostninger

Få at vide, hvordan dette blev beregnet, og tilpas det til dine behov

Prisberegner

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.

Denne ARM-skabelon (Azure Resource Manager) blev oprettet af et medlem af communityet og ikke af Microsoft. Hver ARM-skabelon er givet i licens til dig under en licensaftale med ejeren af skabelonen og ikke med Microsoft. Microsoft kan ikke gøres ansvarlig for de ARM-skabeloner, der leveres og gives i licens af communitymedlemmer, og vi undersøger dem ikke for sikkerhed, kompatibilitet eller ydeevne. ARM-skabeloner fra communytiet understøttes ikke af noget eller nogen Microsoft-supportprogram eller -tjeneste, og de stilles til rådighed, SOM DE ER, uden nogen former for garanti.

Parametre

Parameternavn Beskrivelse
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.

Brug skabelonen

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
Installér og konfigurer Azure PowerShell
Kommandolinje
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
Installér og konfigurer Azure-kommandolinjegrænsefladen til flere platforme

Flere skabeloner af Paulo Marques