Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
81 lines (81 sloc)
2.02 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$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')]" | |
} | |
} | |
] | |
} | |
} | |
] | |
} |