зеркало из https://github.com/Azure/Moodle.git
Add switch to control vnet GW deployment (to reduce deployment time)
This commit is contained in:
Родитель
c199cf25f2
Коммит
741010bdf1
|
@ -30,6 +30,13 @@
|
|||
},
|
||||
"type": "bool"
|
||||
},
|
||||
"vnetGwDeploySwitch": {
|
||||
"defaultValue": false,
|
||||
"metadata": {
|
||||
"description": "Switch to deploy a virtual network gateway or not"
|
||||
},
|
||||
"type": "bool"
|
||||
},
|
||||
"installO365pluginsSwitch": {
|
||||
"defaultValue": false,
|
||||
"metadata": {
|
||||
|
@ -671,6 +678,7 @@
|
|||
"vaultName": "[concat('vault-',variables('resourceprefix'))]",
|
||||
"vmssName": "[concat('vmss-',variables('resourceprefix'))]",
|
||||
"vmssdStorageAccounttName": "[concat('vmss',uniqueString(resourceGroup().id))]",
|
||||
"vnetGwDeploySwitch": "[parameters('vnetGwDeploySwitch')]",
|
||||
"vnetName": "[concat('vnet-',variables('resourceprefix'))]",
|
||||
"vpnType": "[parameters('vpnType')]",
|
||||
"webServerSetupScriptFilename": "setup_webserver.sh",
|
||||
|
|
|
@ -56,6 +56,7 @@
|
|||
"type": "Microsoft.Network/virtualNetworks"
|
||||
},
|
||||
{
|
||||
"condition": "[parameters('moodleCommon').vnetGwDeploySwitch]",
|
||||
"apiVersion": "2015-06-15",
|
||||
"location": "[resourceGroup().location]",
|
||||
"name": "[parameters('moodleCommon').gatewayPublicIPName]",
|
||||
|
@ -68,6 +69,7 @@
|
|||
"type": "Microsoft.Network/publicIPAddresses"
|
||||
},
|
||||
{
|
||||
"condition": "[parameters('moodleCommon').vnetGwDeploySwitch]",
|
||||
"apiVersion": "2015-06-15",
|
||||
"dependsOn": [
|
||||
"[resourceId('Microsoft.Network/virtualNetworks', parameters('moodleCommon').vnetName)]"
|
||||
|
@ -79,6 +81,7 @@
|
|||
"type": "Microsoft.Network/virtualNetworks/subnets"
|
||||
},
|
||||
{
|
||||
"condition": "[parameters('moodleCommon').vnetGwDeploySwitch]",
|
||||
"apiVersion": "2015-06-15",
|
||||
"dependsOn": [
|
||||
"[resourceId('Microsoft.Network/publicIPAddresses', parameters('moodleCommon').gatewayPublicIPName)]",
|
||||
|
@ -168,7 +171,7 @@
|
|||
"probe": {
|
||||
"id": "[variables('extProbeID')]"
|
||||
},
|
||||
"protocol": "tcp"
|
||||
"protocol": "Tcp"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -187,7 +190,7 @@
|
|||
"probe": {
|
||||
"id": "[variables('extProbeID')]"
|
||||
},
|
||||
"protocol": "tcp"
|
||||
"protocol": "Tcp"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
@ -195,10 +198,10 @@
|
|||
{
|
||||
"name": "[parameters('moodleCommon').extProbe ]",
|
||||
"properties": {
|
||||
"intervalInSeconds": "5",
|
||||
"numberOfProbes": "3",
|
||||
"intervalInSeconds": 5,
|
||||
"numberOfProbes": 3,
|
||||
"port": 80,
|
||||
"protocol": "tcp"
|
||||
"protocol": "Tcp"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
Загрузка…
Ссылка в новой задаче