Guest User

Untitled

a guest
Apr 20th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.61 KB | None | 0 0
  1. "linuxConfiguration": {
  2. "disablePasswordAuthentication": "true",
  3. "ssh": {
  4. "publicKeys": [
  5. {
  6. "path": "[concat('/home/', parameters('adminUsername'), '/.ssh/authorized_keys')]",
  7. "keyData": "REMOVED"
  8. }
  9. ]
  10. }
  11.  
  12. "storageProfile": {
  13. "imageReference": {
  14. "id": "/subscriptions/91dc1292-e7af-4ae6-807f-aa5b88bf3b79/resourceGroups/DVOPS_DEV_ResourceGroup/providers/Microsoft.Compute/images/Rhel7singleDisk"
  15. },
  16.  
  17. {
  18. "apiVersion": "2017-03-30",
  19. "type": "Microsoft.Compute/virtualMachines",
  20. "name": "[variables('vmName')]",
  21. "location": "[resourceGroup().location]",
  22. "dependsOn": [
  23. "[concat('Microsoft.Network/networkInterfaces/', variables('nicName'))]"
  24. ],
  25. "properties": {
  26. "hardwareProfile": {
  27. "vmSize": "[parameters('vmSize')]"
  28. },
  29. "osProfile": {
  30. "computerName": "[parameters('customVmName')]",
  31. "adminUsername": "[parameters('adminUsername')]",
  32. "adminPassword": "[parameters('adminPassword')]",
  33. "linuxConfiguration": {
  34. "disablePasswordAuthentication": "true",
  35. "ssh": {
  36. "publicKeys": [
  37. {
  38. "path": "[concat('/home/', parameters('adminUsername'), '/.ssh/authorized_keys')]",
  39. "keyData": "REMOVED"
  40. }
  41. ]
  42. }
  43. }
  44. },
  45. /// HOW TO FIX THE STORAGE PROFILE
  46. "storageProfile": {
  47. "imageReference": {
  48. "id": "/subscriptions/91dc1292-e7af-4ae6-807f-aa5b88bf3b79/resourceGroups/DVOPS_DEV_ResourceGroup/providers/Microsoft.Compute/images/Rhel7singleDisk"
  49. },
  50. "osDisk": {
  51. "name": "[concat(parameters('customVmName'),'-os')]",
  52. "createOption": "FromImage",
  53. "managedDisk": {
  54. "storageAccountType": "[parameters('diskStorageType')]"
  55. }
  56. },
  57. "dataDisks": [
  58. {
  59. "name": "[concat(parameters('customVmName'),'-dataDisk-0')]",
  60. "lun": 0,
  61. "diskSizeGB": 1023,
  62. "createOption": "Empty",
  63. "managedDisk": {
  64. "storageAccountType": "[parameters('diskStorageType')]"
  65. }
  66. }
  67. ]
  68. },
Add Comment
Please, Sign In to add comment