Hoppa över navigering

Azure-snabbstartsmallarna finns för närvarande bara på engelska

Subnet-driven deployment

av JF6
Senast uppdaterad: 2021-07-17

This template creates en environment with multiple subnets and the servers (one DC and two members) associated with. If the number of subnets varies, the servers are adjusted automatically. It illustrates several ARM concepts, such as outputs, array as parameters

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.


Parameternamn Beskrivning
numberOfSubnets Number of subnets in the VNet. Must be between 2 and 20
memberServersPerSubnet Member servers for each subnet. Must be between 1 and 20
storageCategory Storage type. Can be either Standard (HDD) or Premium (SSD)
domainName Domain to create for the Lab
_artifactsLocation The base URI where artifacts required by this template are located including a trailing '/'
_artifactsLocationSasToken The sasToken required to access _artifactsLocation. When the template is deployed using the accompanying scripts, a sasToken will be automatically generated. Use the defaultValue if the staging location is not secured.
adminUsername Admin username
adminPassword Admin password
dnsLabelPrefix Unique public DNS label for the deployment. The fqdn will look something like 'dnsname.region.cloudapp.azure.com'. Up to 62 chars, digits or dashes, lowercase, should start with a letter: must conform to '^[a-z][a-z0-9-]{1,61}[a-z0-9]$'.
vmSize Size of the VM
location Location for all resources.

Använda mallen


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/demos/subnet-driven-deployment/azuredeploy.json
Installera och konfigurera Azure PowerShell


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/demos/subnet-driven-deployment/azuredeploy.json
Installera och konfigurera Azures plattformsoberoende kommandoradsgränssnitt