Create a VM from a Windows Image with 4 Empty Data Disks
{"name": "[parameters('vmname')]", "type": "microsoft.compute/virtualmachines", "location": "[parameters('location')]", "apiversion": "2020-12-01", "dependson": ["[resourceid('microsoft.network/networkinterfaces", variables('vmnicname'))]"], "tags": {"displayname": "vm01"}, "properties": {"hardwareprofile": {"vmsize": "[parameters('vmsize')]"}, "osprofile": {"computername": "[parameters('vmname')]", "adminusername": "[parameters('vmadminusername')]", "adminpassword": "[parameters('vmadminpassword')]"}, "storageprofile": {"imagereference": {"publisher": "[variables('vmimagepublisher')]", "offer": "[variables('vmimageoffer')]", "sku": "[parameters('vmsku')]", "version": "[parameters('vmversion')]"}, "osdisk": {"name": "[concat(parameters('vmname'),"_osdisk')]", "caching": "readwrite", "createoption": "fromimage"}}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces", variables('vmnicname'))]"}]}}, "resources": [{"name": "setupoffice", "type": "extensions", "location": "[parameters('location')]", "apiversion": "2020-12-01", "dependson": ["[resourceid('microsoft.compute/virtualmachines/", parameters('vmname'))]"], "tags": {"displayname": "setupoffice"}, "properties": {"publisher": "microsoft.compute", "type": "customscriptextension", "typehandlerversion": "1.9", "autoupgrademinorversion": true, "settings": {"fileuris": ["[uri(parameters('_artifactslocation'), concat('scripts/", parameters('setupofficescriptfilename'), parameters('_artifactslocationsastoken')))]", "https://raw.githubusercontent.com/officedev/office-it-pro-deployment-scripts/master/office-proplus-deployment/deploy-officeclicktorun/defaultconfiguration.xml", "https://raw.githubusercontent.com/officedev/office-it-pro-deployment-scripts/master/office-proplus-deployment/deploy-officeclicktorun/office2013setup.exe", "https://raw.githubusercontent.com/officedev/office-it-pro-deployment-scripts/master/office-proplus-deployment/deploy-officeclicktorun/office2016setup.exe", "https://raw.githubusercontent.com/officedev/office-it-pro-deployment-scripts/master/office-proplus-deployment/deploy-officeclicktorun/edit-officeconfigurationfile.ps1", "https://raw.githubusercontent.com/officedev/office-it-pro-deployment-scripts/master/office-proplus-deployment/deploy-officeclicktorun/generate-odtconfigurationxml.ps1", "https://raw.githubusercontent.com/officedev/office-it-pro-deployment-scripts/master/office-proplus-deployment/deploy-officeclicktorun/install-officeclicktorun.ps1"], "commandtoexecute": "[concat('powershell -executionpolicy bypass -file scripts/", parameters('setupofficescriptfilename')," -officeversion ", parameters('officeversion'))]"}}}]} 