Create a VM from a Windows Image with 4 Empty Data Disks
{"type": "microsoft.compute/virtualmachines", "apiversion": "2019-07-01", "name": "[parameters('vm_name')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/networkinterfaces", parameters('nic_name'))]"], "properties": {"hardwareprofile": {"vmsize": "[parameters('vmsize')]"}, "storageprofile": {"imagereference": {"publisher": "[variables('vmimagepublisher')]", "offer": "[variables('vmimageoffer')]", "sku": "[variables('sku')]", "version": "latest"}, "osdisk": {"ostype": "windows", "name": "[concat(parameters('vm_name'), "_osdisk')]", "createoption": "fromimage", "caching": "readwrite"}}, "osprofile": {"computername": "[parameters('vm_name')]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpassword')]"}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces", parameters('nic_name'))]"}]}}}{"name": "[concat(parameters('vm_name'),"/gpudrivers')]", "type": "microsoft.compute/virtualmachines/extensions", "location": "[parameters('location')]", "apiversion": "2019-07-01", "dependson": ["[resourceid('microsoft.compute/virtualmachines/", parameters('vm_name'))]", "[resourceid('microsoft.compute/virtualmachines/extensions", parameters('vm_name'), "setupchocolatey')]"], "tags": {"displayname": "gpu-nvidia-drivers"}, "properties": {"publisher": "microsoft.hpccompute", "type": "nvidiagpudriverwindows", "typehandlerversion": "1.2", "autoupgrademinorversion": true}}{"name": "[concat(parameters('vm_name'),"/setupchocolatey')]", "apiversion": "2019-07-01", "type": "microsoft.compute/virtualmachines/extensions", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.compute/virtualmachines/", parameters('vm_name'))]"], "tags": {"displayname": "config-choco"}, "properties": {"publisher": "microsoft.compute", "type": "customscriptextension", "typehandlerversion": "1.10", "autoupgrademinorversion": true, "settings": {"fileuris": ["[variables('setupscriptlocation')]"], "commandtoexecute": "[concat('powershell -executionpolicy bypass -file ", parameters('setupchocolateyscriptfilename')," -chocopackages ",parameters('chocopackages'))]"}}} 