Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
196 lines (195 sloc) 6.41 KB
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json# ",
"contentVersion": "1.0.0.0",
"parameters": {
"commonSettings": {
"type": "object",
"metadata": {
"Description": "Common settings object"
}
},
"networkSettings": {
"type": "object",
"metadata": {
"Description": "Network settings object"
}
},
"machineSettings": {
"type": "object",
"metadata": {
"Description": "Machine settings object"
}
},
"storageAccountNamePrefix": {
"type": "string",
"defaultValue": "uniquestorageAccountNamePrefix",
"metadata": {
"Description": "Unique namespace for the Storage Account where the Virtual Machine's disks will be placed"
}
}
},
"variables": {
"vmStorageAccountContainerName": "vhd",
"winSourceImageName": "[concat('/',subscription().subscriptionId,'/services/images/a699494373c04fc0bc8f2bb1389d6106__Windows-Server-Technical-Preview-201504.01-en.us-127GB.vhd')]",
"subnetRef": "[concat(resourceId('Microsoft.Network/virtualNetworks',parameters('networkSettings').virtualNetworkName),'/subnets/',parameters('networkSettings').subnet.name)]",
"storageAccountName": "[concat(parameters('storageAccountNamePrefix'), 'jb')]"
},
"resources": [
{
"type": "Microsoft.Storage/storageAccounts",
"name": "[variables('storageAccountName')]",
"apiVersion": "2015-05-01-preview",
"location": "[parameters('commonSettings').region]",
"properties": {
"accountType": "Standard_LRS"
}
},
{
"apiVersion": "2015-05-01-preview",
"type": "Microsoft.Network/publicIPAddresses",
"name": "publicIP",
"location": "[parameters('commonSettings').region]",
"properties": {
"publicIPAllocationMethod": "Dynamic"
}
},
{
"apiVersion": "2015-05-01-preview",
"type": "Microsoft.Network/networkInterfaces",
"name": "nicJumpbox",
"location": "[parameters('commonSettings').region]",
"dependsOn": [
"[concat('Microsoft.Network/publicIPAddresses/', 'publicIP')]"
],
"properties": {
"ipConfigurations": [
{
"name": "ipconfig1",
"properties": {
"privateIPAllocationMethod": "Dynamic",
"publicIPAddress": {
"id": "[resourceId('Microsoft.Network/publicIPAddresses','publicIP')]"
},
"subnet": {
"id": "[variables('subnetRef')]"
}
}
}
]
}
},
{
"apiVersion": "2015-05-01-preview",
"type": "Microsoft.Compute/virtualMachines",
"name": "jumpbox",
"location": "[parameters('commonSettings').region]",
"dependsOn": [
"[concat('Microsoft.Network/networkInterfaces/', 'nicJumpbox')]",
"[concat('Microsoft.Storage/storageAccounts/', variables('storageAccountName'))]"
],
"properties": {
"hardwareProfile": {
"vmSize": "Standard_A0"
},
"osProfile": {
"computerName": "[concat(parameters('machineSettings').machineNamePrefix, 'jumpbox')]",
"adminUsername": "[parameters('machineSettings').adminUsername]",
"adminPassword": "[parameters('machineSettings').adminPassword]"
},
"storageProfile": {
"imageReference": "[parameters('machineSettings').imageReference]",
"osDisk": {
"name": "osdisk",
"vhd": {
"uri": "[concat('http://', variables('storageAccountName'), '.blob.core.windows.net/',variables('vmStorageAccountContainerName'),'/', 'jumpbox-os-disk.vhd')]"
},
"caching": "ReadWrite",
"createOption": "FromImage"
}
},
"networkProfile": {
"networkInterfaces": [
{
"id": "[resourceId('Microsoft.Network/networkInterfaces','nicJumpbox')]"
}
]
}
}
},
{
"apiVersion": "2015-05-01-preview",
"type": "Microsoft.Network/publicIPAddresses",
"name": "publicIPWin",
"location": "[parameters('commonSettings').region]",
"properties": {
"publicIPAllocationMethod": "Dynamic"
}
},
{
"apiVersion": "2015-05-01-preview",
"type": "Microsoft.Network/networkInterfaces",
"name": "nicWin",
"location": "[parameters('commonSettings').region]",
"dependsOn": [
"[concat('Microsoft.Network/publicIPAddresses/', 'publicIPWin')]"
],
"properties": {
"ipConfigurations": [
{
"name": "ipconfig1",
"properties": {
"privateIPAllocationMethod": "Dynamic",
"publicIPAddress": {
"id": "[resourceId('Microsoft.Network/publicIPAddresses','publicIPWin')]"
},
"subnet": {
"id": "[variables('subnetRef')]"
}
}
}
]
}
},
{
"apiVersion": "2015-05-01-preview",
"type": "Microsoft.Compute/virtualMachines",
"name": "windows",
"location": "[parameters('commonSettings').region]",
"dependsOn": [
"[concat('Microsoft.Network/networkInterfaces/', 'nicWin')]",
"[concat('Microsoft.Storage/storageAccounts/', variables('storageAccountName'))]"
],
"properties": {
"hardwareProfile": {
"vmSize": "Standard_A1"
},
"osProfile": {
"computerName": "[concat(parameters('machineSettings').machineNamePrefix, 'win')]",
"adminUsername": "[parameters('machineSettings').adminUsername]",
"adminPassword": "[parameters('machineSettings').adminPassword]"
},
"storageProfile": {
"sourceImage": {
"id": "[variables('winSourceImageName')]"
},
"osDisk": {
"name": "osdisk",
"vhd": {
"uri": "[concat('http://', variables('storageAccountName'), '.blob.core.windows.net/',variables('vmStorageAccountContainerName'),'/', 'winbox-os-disk.vhd')]"
},
"caching": "ReadWrite",
"createOption": "FromImage"
}
},
"networkProfile": {
"networkInterfaces": [
{
"id": "[resourceId('Microsoft.Network/networkInterfaces','nicWin')]"
}
]
}
}
}
],
"outputs": {}
}
You can’t perform that action at this time.