Skip to content

Commit

Permalink
Added mgmt vm
Browse files Browse the repository at this point in the history
  • Loading branch information
directdevops committed Sep 29, 2020
1 parent 4565b94 commit 36c8af4
Showing 1 changed file with 81 additions and 7 deletions.
88 changes: 81 additions & 7 deletions Sep20/ntier/ntier.json
Expand Up @@ -128,7 +128,11 @@
"comments": "Public IP for your Management VM", "comments": "Public IP for your Management VM",
"properties": { "properties": {
"publicIPAllocationMethod": "Dynamic" "publicIPAllocationMethod": "Dynamic"
} },
"dependsOn": [
"[parameters('ntiervnetconfig').name]",
"[parameters('ntiervnetconfig').nsgs[4].name]"
]
}, },
{ {
"name": "managementnic", "name": "managementnic",
Expand All @@ -138,11 +142,7 @@
"tags": { "tags": {
"displayName": "mgmtnic" "displayName": "mgmtnic"
}, },
"dependsOn": [
"[resourceId('Microsoft.Network/virtualNetworks', parameters('ntiervnetconfig').name)]",
"[resourceId('Microsoft.Network/networkSecurityGroups', parameters('ntiervnetconfig').nsgs[1].name)]",
"[resourceId('Microsoft.Network/publicIpAddresses', 'mgmtpublicip')]"
],
"properties": { "properties": {
"networkSecurityGroup": { "networkSecurityGroup": {
"id": "[resourceId('Microsoft.Network/networkSecurityGroups', parameters('ntiervnetconfig').nsgs[1].name)]" "id": "[resourceId('Microsoft.Network/networkSecurityGroups', parameters('ntiervnetconfig').nsgs[1].name)]"
Expand All @@ -161,7 +161,81 @@
} }
} }
] ]
} },
"dependsOn": [
"[resourceId('Microsoft.Network/virtualNetworks', parameters('ntiervnetconfig').name)]",
"[resourceId('Microsoft.Network/networkSecurityGroups', parameters('ntiervnetconfig').nsgs[1].name)]",
"[resourceId('Microsoft.Network/publicIpAddresses', 'mgmtpublicip')]"
]
},
{
"name": "ltarmstorage",
"type": "Microsoft.Storage/storageAccounts",
"apiVersion": "2019-06-01",
"location": "[resourceGroup().location]",
"tags": {
"displayName": "lthrms Storage Account"
},
"sku": {
"name": "Standard_LRS"
},
"kind": "Storage",
"dependsOn": [
"[resourceId('Microsoft.Network/virtualNetworks', parameters('ntiervnetconfig').name)]"
]
},
{
"name": "mgmtjumpbox",
"type": "Microsoft.Compute/virtualMachines",
"apiVersion": "2019-07-01",
"location": "[resourceGroup().location]",
"tags": {
"displayName": "mgmt jumpbox"
},
"properties": {
"hardwareProfile": {
"vmSize": "Standard_B1s"
},
"osProfile": {
"computerName": "mgmtjumpbox",
"adminUsername": "qtdevops",
"adminPassword": "motherindia@123"
},
"storageProfile": {
"imageReference": {
"publisher": "Canonical",
"offer": "UbuntuServer",
"sku": "18.04-LTS",
"version": "latest"
},
"osDisk": {
"name": "mgmtjbox-OSDisk",
"caching": "ReadWrite",
"createOption": "FromImage"
}
},
"networkProfile": {
"networkInterfaces": [
{
"id": "[resourceId('Microsoft.Network/networkInterfaces', 'managementnic')]"
}
]
},
"diagnosticsProfile": {
"bootDiagnostics": {
"enabled": true,
"storageUri": "[reference(resourceId('Microsoft.Storage/storageAccounts/', toLower('ltarmstorage'))).primaryEndpoints.blob]"
}
}

},
"dependsOn": [
"[resourceId('Microsoft.Storage/storageAccounts/', toLower('ltarmstorage'))]",
"[resourceId('Microsoft.Network/networkInterfaces', 'managementnic')]",
"[resourceId('Microsoft.Network/virtualNetworks/subnets', parameters('ntiervnetconfig').name, variables('mgmtsubnetname'))]"
]


} }
] ]
} }

0 comments on commit 36c8af4

Please sign in to comment.