зеркало из
1
0
Форкнуть 0
azure-quickstart-templates/mongodb-high-availability/jumpbox-resources.json

118 строки
4.3 KiB
JSON

{
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"commonSettings": {
"type": "object",
"metadata": {
"Description": "Common settings object"
}
},
"storageSettings": {
"type": "object",
"metadata": {
"Description": "Storage settings object"
}
},
"networkSettings": {
"type": "object",
"metadata": {
"Description": "Network settings object"
}
},
"machineSettings": {
"type": "object",
"metadata": {
"Description": "Machine settings object"
}
}
},
"variables": {
"vmSize": "Standard_A0"
},
"resources": [
{
"apiVersion": "2015-05-01-preview",
"type": "Microsoft.Network/publicIPAddresses",
"name": "jumpboxPublicIP",
"location": "[parameters('commonSettings').region]",
"properties": {
"publicIPAllocationMethod": "Dynamic"
}
},
{
"apiVersion": "2015-05-01-preview",
"type": "Microsoft.Network/networkInterfaces",
"name": "jumpboxNIC",
"location": "[parameters('commonSettings').region]",
"dependsOn": [
"[concat('Microsoft.Network/publicIPAddresses/', 'jumpboxPublicIP')]"
],
"properties": {
"ipConfigurations": [
{
"name": "ipConfigJumpbox",
"properties": {
"privateIPAllocationMethod": "Dynamic",
"publicIPAddress": {
"id": "[resourceId('Microsoft.Network/publicIPAddresses','jumpboxPublicIP')]"
},
"subnet": {
"id": "[parameters('networkSettings').subnetRef]"
}
}
}
]
}
},
{
"apiVersion": "2015-05-01-preview",
"type": "Microsoft.Compute/virtualMachines",
"name": "jumpboxVM",
"location": "[parameters('commonSettings').region]",
"dependsOn": [
"[concat('Microsoft.Network/networkInterfaces/', 'jumpboxNIC')]"
],
"properties": {
"hardwareProfile": {
"vmSize": "[variables('vmSize')]"
},
"osProfile": {
"computername": "[concat(parameters('machineSettings').machineNamePrefix, 'jumpbox')]",
"adminUsername": "[parameters('machineSettings').adminUsername]",
"adminPassword": "[parameters('machineSettings').adminPassword]"
},
"storageProfile": {
"imageReference": "[parameters('machineSettings').osImageReference]",
"osDisk": {
"name": "osdisk",
"vhd": {
"uri": "[concat(parameters('storageSettings').destinationVhdsContainer, 'jumpbox-os-disk.vhd')]"
},
"caching": "ReadWrite",
"createOption": "FromImage"
}
},
"networkProfile": {
"networkInterfaces": [
{
"id": "[resourceId('Microsoft.Network/networkInterfaces','jumpboxNIC')]"
}
],
"inputEndpoints": [
{
"enableDirectServerReturn": "False",
"endpointName": "SSH",
"privatePort": 22,
"publicPort": 22,
"protocol": "tcp"
}
]
}
}
}
],
"outputs": {
}
}