The Azure Quickstart templates are currently available in English
Creates 2 new VMs with a NIC each, in two different subnets within the same VNet. Sets service endpoint on one of the subnets and secures storage account to that subnet.
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 |
---|---|
adminUsername | VM admin user name |
adminPassword | VM admin password |
vnetName | Name of the virtual network |
vnetAddressPrefix | Address prefix for the virtual network |
subnet1Name | Name of the first subnet in the VNet |
subnet1Prefix | Address prefix for subnet1 |
subnet2Name | Name of the second subnet in the VNet |
subnet2Prefix | Address prefix for subnet2 |
vmSize | Size of VM |
storageAccountType | Geo-replication type of Storage account |
location | Location for all resources. |
Brug skabelonen
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 deploymentInstallér og konfigurer Azure PowerShell
New-AzResourceGroupDeployment -ResourceGroupName <resource-group-name> -TemplateUri https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/201-vnet-2subnets-service-endpoints-storage-integration/azuredeploy.json
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 deploymentInstallér og konfigurer Azure-kommandolinjegrænsefladen til flere platforme
az group deployment create --resource-group <my-resource-group> --template-uri https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/201-vnet-2subnets-service-endpoints-storage-integration/azuredeploy.json