Skip to content

Instantly share code, notes, and snippets.

@marrobi
Created January 26, 2017 12:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marrobi/1475d97916ac750a1ef47a58d72efff0 to your computer and use it in GitHub Desktop.
Save marrobi/1475d97916ac750a1ef47a58d72efff0 to your computer and use it in GitHub Desktop.
VNet
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
},
"variables": {
"VNetPrefix": "10.0.0.0/16",
"VNetSubnet1Name": "Subnet-1",
"VNetSubnet1Prefix": "10.0.0.0/24"
},
"resources": [
{
"name": "VNet",
"type": "Microsoft.Network/virtualNetworks",
"location": "[resourceGroup().location]",
"apiVersion": "2016-03-30",
"dependsOn": [ ],
"tags": {
"displayName": "VNet"
},
"properties": {
"addressSpace": {
"addressPrefixes": [
"[variables('VNetPrefix')]"
]
},
"subnets": [
{
"name": "[variables('VNetSubnet1Name')]",
"properties": {
"addressPrefix": "[variables('VNetSubnet1Prefix')]"
}
}
]
}
}
],
"outputs": {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment