Skip to content

Instantly share code, notes, and snippets.

@anoff
Last active December 10, 2017 14:20
Show Gist options
  • Save anoff/ff39deb0c56983399562fb5983f0744f to your computer and use it in GitHub Desktop.
Save anoff/ff39deb0c56983399562fb5983f0744f to your computer and use it in GitHub Desktop.
Terraform deployment for data science VM
..
"resources": [
{
"name": "[parameters('virtualMachineName')]",
"type": "Microsoft.Compute/virtualMachines",
"apiVersion": "2016-04-30-preview",
"location": "[parameters('location')]",
"dependsOn": [
"[concat('Microsoft.Network/networkInterfaces/', parameters('networkInterfaceName'))]",
"[concat('Microsoft.Storage/storageAccounts/', parameters('diagnosticsStorageAccountName'))]"
],
"properties": {
"osProfile": {
"computerName": "[parameters('virtualMachineName')]",
"adminUsername": "[parameters('adminUsername')]",
"adminPassword": "[parameters('adminPassword')]"
},
"hardwareProfile": {
"vmSize": "[parameters('virtualMachineSize')]"
},
"storageProfile": {
"imageReference": {
"publisher": "microsoft-ads",
"offer": "linux-data-science-vm-ubuntu",
"sku": "linuxdsvmubuntu",
"version": "latest"
},
"osDisk": {
"createOption": "fromImage",
"managedDisk": {
"storageAccountType": "Premium_LRS"
}
},
"dataDisks": [
{
"createOption": "fromImage",
"lun": 0,
"managedDisk": {
"storageAccountType": "Premium_LRS"
}
}
]
}
},
"plan": {
"name": "linuxdsvmubuntu",
"publisher": "microsoft-ads",
"product": "linux-data-science-vm-ubuntu"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment