86 строки
2.2 KiB
JSON
86 строки
2.2 KiB
JSON
{
|
|
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/VNET.json",
|
|
"contentVersion": "1.0.0.0",
|
|
"parameters" : {
|
|
"location": {
|
|
"type": "String",
|
|
"allowedValues": ["East US", "West US", "West Europe", "East Asia", "South East Asia"],
|
|
"metadata" : {
|
|
"Description" : "Deployment location"
|
|
}
|
|
},
|
|
"virtualNetworkName":{
|
|
"type" : "string",
|
|
"defaultValue":"myVNET",
|
|
"metadata" : {
|
|
"Description" : "VNET name"
|
|
}
|
|
},
|
|
"addressPrefix":{
|
|
"type" : "string",
|
|
"defaultValue" : "10.0.0.0/16",
|
|
"metadata" : {
|
|
"Description" : "Address prefix"
|
|
}
|
|
|
|
},
|
|
"subnet1Name": {
|
|
"type" : "string",
|
|
"defaultValue" : "Subnet-1",
|
|
"metadata" : {
|
|
"Description" : "Subnet 1 Name"
|
|
}
|
|
},
|
|
"subnet2Name": {
|
|
"type" : "string",
|
|
"defaultValue" : "Subnet-2",
|
|
"metadata" : {
|
|
"Description" : "Subnet 2 name"
|
|
}
|
|
},
|
|
"subnet1Prefix" : {
|
|
"type" : "string",
|
|
"defaultValue" : "10.0.0.0/24",
|
|
"metadata" : {
|
|
"Description" : "Subnet 1 Prefix"
|
|
}
|
|
},
|
|
"subnet2Prefix" : {
|
|
"type" : "string",
|
|
"defaultValue" : "10.0.1.0/24",
|
|
"metadata" : {
|
|
"Description" : "Subnet 2 Prefix"
|
|
}
|
|
}
|
|
},
|
|
"resources": [
|
|
{
|
|
"apiVersion": "2015-05-01-preview",
|
|
"type": "Microsoft.Network/virtualNetworks",
|
|
"name": "[parameters('virtualNetworkName')]",
|
|
"location": "[parameters('location')]",
|
|
"properties": {
|
|
"addressSpace": {
|
|
"addressPrefixes": [
|
|
"[parameters('addressPrefix')]"
|
|
]
|
|
},
|
|
"subnets": [
|
|
{
|
|
"name": "[parameters('subnet1Name')]",
|
|
"properties" : {
|
|
"addressPrefix": "[parameters('subnet1Prefix')]"
|
|
}
|
|
},
|
|
{
|
|
"name": "[parameters('subnet2Name')]",
|
|
"properties" : {
|
|
"addressPrefix": "[parameters('subnet2Prefix')]"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|