Workspace-Guru

windows10mu.json

Aug 5th, 2019
412
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 4.27 KB | None | 0 0
  1. {
  2.     "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
  3.     "contentVersion": "1.0.0.0",
  4.     "parameters": {
  5.         "location": {
  6.             "type": "string"
  7.         },
  8.         "networkInterfaceName": {
  9.             "type": "string"
  10.         },
  11.         "subnetName": {
  12.             "type": "string"
  13.         },
  14.         "virtualNetworkId": {
  15.             "type": "string"
  16.         },
  17.         "virtualMachineName": {
  18.             "type": "string"
  19.         },
  20.         "virtualMachineRG": {
  21.             "type": "string"
  22.         },
  23.         "osDiskType": {
  24.             "type": "string"
  25.         },
  26.         "virtualMachineSize": {
  27.             "type": "string"
  28.         },
  29.         "adminUsername": {
  30.             "type": "string"
  31.         },
  32.         "adminPassword": {
  33.             "type": "secureString"
  34.         },
  35.         "diagnosticsStorageAccountName": {
  36.             "type": "string"
  37.         },
  38.         "diagnosticsStorageAccountId": {
  39.             "type": "string"
  40.         }
  41.     },
  42.     "variables": {
  43.         "vnetId": "[parameters('virtualNetworkId')]",
  44.         "subnetRef": "[concat(variables('vnetId'), '/subnets/', parameters('subnetName'))]"
  45.     },
  46.     "resources": [
  47.         {
  48.             "name": "[parameters('networkInterfaceName')]",
  49.             "type": "Microsoft.Network/networkInterfaces",
  50.             "apiVersion": "2018-10-01",
  51.             "location": "[parameters('location')]",
  52.             "dependsOn": [],
  53.             "properties": {
  54.                 "ipConfigurations": [
  55.                     {
  56.                         "name": "ipconfig1",
  57.                         "properties": {
  58.                             "subnet": {
  59.                                 "id": "[variables('subnetRef')]"
  60.                             },
  61.                             "privateIPAllocationMethod": "Dynamic"
  62.                         }
  63.                     }
  64.                 ]
  65.             }
  66.         },
  67.         {
  68.             "name": "[parameters('virtualMachineName')]",
  69.             "type": "Microsoft.Compute/virtualMachines",
  70.             "apiVersion": "2018-10-01",
  71.             "location": "[parameters('location')]",
  72.             "dependsOn": [
  73.                 "[concat('Microsoft.Network/networkInterfaces/', parameters('networkInterfaceName'))]"
  74.             ],
  75.             "properties": {
  76.                 "hardwareProfile": {
  77.                     "vmSize": "[parameters('virtualMachineSize')]"
  78.                 },
  79.                 "storageProfile": {
  80.                     "osDisk": {
  81.                         "createOption": "fromImage",
  82.                         "managedDisk": {
  83.                             "storageAccountType": "[parameters('osDiskType')]"
  84.                         }
  85.                     },
  86.                     "imageReference": {
  87.                         "publisher": "MicrosoftWindowsDesktop",
  88.                         "offer": "office-365",
  89.                         "sku": "19h2-evd-o365pp",
  90.                         "version": "latest"
  91.                     }
  92.                 },
  93.                 "networkProfile": {
  94.                     "networkInterfaces": [
  95.                         {
  96.                             "id": "[resourceId('Microsoft.Network/networkInterfaces', parameters('networkInterfaceName'))]"
  97.                         }
  98.                     ]
  99.                 },
  100.                 "osProfile": {
  101.                     "computerName": "[parameters('virtualMachineName')]",
  102.                     "adminUsername": "[parameters('adminUsername')]",
  103.                     "adminPassword": "[parameters('adminPassword')]",
  104.                     "windowsConfiguration": {
  105.                         "enableAutomaticUpdates": true,
  106.                         "provisionVmAgent": true
  107.                     }
  108.                 },
  109.                 "licenseType": "Windows_Client",
  110.                 "diagnosticsProfile": {
  111.                     "bootDiagnostics": {
  112.                         "enabled": true,
  113.                         "storageUri": "[concat('https://', parameters('diagnosticsStorageAccountName'), '.blob.core.windows.net/')]"
  114.                     }
  115.                 }
  116.             }
  117.         }
  118.     ],
  119.     "outputs": {
  120.         "adminUsername": {
  121.             "type": "string",
  122.             "value": "[parameters('adminUsername')]"
  123.         }
  124.     }
  125. }
Advertisement
Add Comment
Please, Sign In to add comment