63 строки
1.9 KiB
JSON
63 строки
1.9 KiB
JSON
{
|
|
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#",
|
|
"contentVersion": "1.0.0.0",
|
|
"parameters": {
|
|
"region": {
|
|
"type": "string",
|
|
"metadata": {
|
|
"Description": "Location where resources will be provisioned"
|
|
}
|
|
},
|
|
"networkSpec": {
|
|
"type": "object"
|
|
},
|
|
"masterNodeASName": {
|
|
"type": "string"
|
|
},
|
|
"workerNodeASName": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"variables": {
|
|
},
|
|
"resources": [
|
|
{
|
|
"apiVersion": "2015-05-01-preview",
|
|
"type": "Microsoft.Compute/availabilitySets",
|
|
"name": "[parameters('masterNodeASName')]",
|
|
"location": "[parameters('region')]",
|
|
"properties": {
|
|
}
|
|
},
|
|
{
|
|
"apiVersion": "2015-05-01-preview",
|
|
"type": "Microsoft.Compute/availabilitySets",
|
|
"name": "[parameters('workerNodeASName')]",
|
|
"location": "[parameters('region')]",
|
|
"properties": {
|
|
}
|
|
},
|
|
{
|
|
"apiVersion": "2015-05-01-preview",
|
|
"type": "Microsoft.Network/virtualNetworks",
|
|
"name": "[parameters('networkSpec').virtualNetworkName]",
|
|
"location": "[parameters('region')]",
|
|
"properties": {
|
|
"addressSpace": {
|
|
"addressPrefixes": [
|
|
"[parameters('networkSpec').addressPrefix]"
|
|
]
|
|
},
|
|
"subnets": [
|
|
{
|
|
"name": "[parameters('networkSpec').virtualNetworkSubnetName]",
|
|
"properties": {
|
|
"addressPrefix": "[parameters('networkSpec').subnetPrefix]"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|