Skip to content
Permalink
main
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"virtualNetworkName": {
"type": "string",
"metadata": {
"description": "Name for new virtual network"
},
"defaultValue": "azwhatif"
},
"addressPrefix": {
"type": "string",
"metadata": {
"description": "Name for new virtual network"
},
"defaultValue": "192.168.0.0/16"
},
"subnet1Name": {
"type": "string",
"defaultValue": "Subnet1",
"metadata": {
"description": "Name for VM subnet in the new VNet"
}
},
"gatewaySubnet": {
"type": "string",
"defaultValue": "GatewaySubnet",
"metadata": {
"description": "Name for gateway subnet in new VNet"
},
"allowedValues": [
"GatewaySubnet"
]
},
"subnet1Prefix": {
"type": "string",
"metadata": {
"description": "CIDR block for VM subnet"
},
"defaultValue": "192.168.0.0/24"
},
"gatewaySubnetPrefix": {
"type": "string",
"metadata": {
"description": "CIDR block for gateway subnet"
},
"defaultValue": "192.168.1.0/24"
}
},
"variables": {},
"resources": [
{
"apiVersion": "2015-05-01-preview",
"type": "Microsoft.Network/virtualNetworks",
"name": "[parameters('virtualNetworkName')]",
"location": "[resourceGroup().location]",
"properties": {
"addressSpace": {
"addressPrefixes": [
"[parameters('addressPrefix')]"
]
},
"subnets": [
{
"name": "[parameters('subnet1Name')]",
"properties": {
"addressPrefix": "[parameters('subnet1Prefix')]"
}
},
{
"name": "[parameters('gatewaySubnet')]",
"properties": {
"addressPrefix": "[parameters('gatewaySubnetPrefix')]"
}
}
]
}
}
]
}