The Azure Quickstart templates are currently available in English

Add multiple VMs into a Virtual Machine Scale Set

Sist oppdatert: 09.02.2021

This template will create N number of VM's with managed disks, public IPs and network interfaces. It will create the VMs in a Virtual Machine Scale Set in Flexible Orchestration mode. They will be provisioned in a Virtual Network which will also be created as part of the deployment

Denne Azure Resource Manager (ARM)-malen ble opprettet av et medlem av fellesskapet og ikke av Microsoft. Hver ARM-mal er lisensiert til deg i henhold til en lisensavtale med eieren, ikke med Microsoft. Microsoft er ikke ansvarlig for ARM-maler som leveres og lisensieres av medlemmer og siler dem ikke ut med tanke på sikkerhet, kompatibilitet eller ytelse. Fellesskapets ARM-maler støttes ikke av noe Microsoft-støtteprogram eller -tjeneste, og er gjort tilgjengelig SOM DE ER, uten noen form for garanti.

Parametere

Parameternavn Beskrivelse
virtualMachineAdminUserName Administrator Username for the local admin account
virtualMachineAdminPassword Administrator password for the local admin account
virtualMachineNamePrefix Name of the virtual machine to be created
virtualMachineCount Number of virtual machines to be created
virtualMachineSize Virtual Machine Size.
operatingSystem Operating System of the Server
virtualMachineScaleSetName Virtual Machine Scale Set Name where the VM will be placed
virtualMachineScaleSetAvailabilityZone Specify an Availability Zone for the Virtual Machine Scale Set. All Virtual Machines added the the scale set will inherit this zone. Not all Azure regions support Availability zones. VMSS deployed into a zone must have a platformFaultDomainCount = 1. Learn more about maximum fault domain count by region: https://aka.ms/azurefdcountbyregion
dnsPrefixForPublicIP Globally unique DNS prefix for the Public IPs used to access the Virtual Machines
location Location for all resources.

Bruke malen

PowerShell

New-AzResourceGroup -Name <resource-group-name> -Location <resource-group-location> #use this command when you need to create a new resource group for your deployment
New-AzResourceGroupDeployment -ResourceGroupName <resource-group-name> -TemplateUri https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/201-vm-vmss-flexible-orchestration-mode/azuredeploy.json
Installere og konfigurere Azure PowerShell

Kommandolinje

az group create --name <resource-group-name> --location <resource-group-location> #use this command when you need to create a new resource group for your deployment
az group deployment create --resource-group <my-resource-group> --template-uri https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/201-vm-vmss-flexible-orchestration-mode/azuredeploy.json
Installer og konfigurer Azures kommandolinjegrensesnitt for alle plattformer