Create a VM from a Windows Image with 4 Empty Data Disks

{"type": "microsoft.compute/availabilitysets", "name": "[variables('availabilitysetname')]", "apiversion": "2017-12-01", "location": "[parameters('location')]", "sku": {"name": "aligned"}, "properties": {"platformfaultdomaincount": 2, "platformupdatedomaincount": 5}}{"name": "[variables('vmname1')]", "type": "microsoft.compute/virtualmachines", "apiversion": "2017-03-30", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.compute/availabilitysets", variables('availabilitysetname'))]", "[resourceid('microsoft.network/networkinterfaces", variables('nicname1'))]"], "properties": {"availabilityset": {"id": "[resourceid('microsoft.compute/availabilitysets", variables('availabilitysetname'))]"}, "hardwareprofile": {"vmsize": "[parameters('vmsize')]"}, "osprofile": {"computername": "[variables('vmname1')]", "adminusername": "[parameters('username')]", "adminpassword": "[parameters('adminpasswordorkey')]", "linuxconfiguration": "[if(equals(parameters('authenticationtype'), "password'), json('null'), variables('linuxconfiguration'))]"}, "storageprofile": {"imagereference": {"publisher": "[parameters('imagepublisher')]", "offer": "[parameters('imageoffer')]", "sku": "[parameters('imagesku')]", "version": "latest"}, "osdisk": {"name": "[concat(variables('vmname1'),"_osdisk')]", "caching": "readwrite", "createoption": "fromimage"}, "datadisks": [{"name": "[concat(variables('vmname1'),"_datadisk1')]", "disksizegb": "1000", "lun": 0, "createoption": "empty"}, {"name": "[concat(variables('vmname1'),"_datadisk2')]", "disksizegb": "1000", "lun": 1, "createoption": "empty"}]}, "networkprofile": {"networkinterfaces": [{"id": "[variables('nicid1')]"}]}}}{"type": "microsoft.compute/virtualmachines/extensions", "name": "[variables('vmextensionname1')]", "apiversion": "2015-06-15", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.compute/virtualmachines/", variables('vmname1'))]"], "properties": {"publisher": "microsoft.azure.extensions", "type": "customscript", "typehandlerversion": "2.0", "autoupgrademinorversion": true, "settings": {"fileuris": ["[uri(parameters('_artifactslocation'), concat('azurepxc.sh", parameters('_artifactslocationsastoken')))]"]}, "protectedsettings": {"commandtoexecute": "[concat(variables('customscriptcommandcommon'), variables('customscriptparamvm1'))]"}}}{"name": "[variables('vmname2')]", "type": "microsoft.compute/virtualmachines", "apiversion": "2017-03-30", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.compute/availabilitysets", variables('availabilitysetname'))]", "[resourceid('microsoft.network/networkinterfaces", variables('nicname2'))]"], "properties": {"availabilityset": {"id": "[resourceid('microsoft.compute/availabilitysets", variables('availabilitysetname'))]"}, "hardwareprofile": {"vmsize": "[parameters('vmsize')]"}, "osprofile": {"computername": "[variables('vmname2')]", "adminusername": "[parameters('username')]", "adminpassword": "[parameters('adminpasswordorkey')]", "linuxconfiguration": "[if(equals(parameters('authenticationtype'), "password'), json('null'), variables('linuxconfiguration'))]"}, "storageprofile": {"imagereference": {"publisher": "[parameters('imagepublisher')]", "offer": "[parameters('imageoffer')]", "sku": "[parameters('imagesku')]", "version": "latest"}, "osdisk": {"name": "[concat(variables('vmname2'),"_osdisk')]", "caching": "readwrite", "createoption": "fromimage"}, "datadisks": [{"name": "[concat(variables('vmname2'),"_datadisk1')]", "disksizegb": "1000", "lun": 0, "createoption": "empty"}, {"name": "[concat(variables('vmname2'),"_datadisk2')]", "disksizegb": "1000", "lun": 1, "createoption": "empty"}]}, "networkprofile": {"networkinterfaces": [{"id": "[variables('nicid2')]"}]}}}{"type": "microsoft.compute/virtualmachines/extensions", "name": "[concat(variables('vmname2'),"/", variables('vmextensionname'))]", "apiversion": "2015-06-15", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.compute/virtualmachines", variables('vmname2'))]", "[resourceid('microsoft.compute/virtualmachines/extensions",variables('vmname1'), variables('vmextensionname'))]"], "properties": {"publisher": "microsoft.azure.extensions", "type": "customscript", "typehandlerversion": "2.0", "autoupgrademinorversion": true, "settings": {"fileuris": ["[uri(parameters('_artifactslocation'), concat('azurepxc.sh", parameters('_artifactslocationsastoken')))]"]}, "protectedsettings": {"commandtoexecute": "[concat(variables('customscriptcommandcommon'), variables('customscriptparamvm2'))]"}}}{"name": "[variables('vmname3')]", "type": "microsoft.compute/virtualmachines", "apiversion": "2017-03-30", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.compute/availabilitysets", variables('availabilitysetname'))]", "[resourceid('microsoft.network/networkinterfaces", variables('nicname3'))]"], "properties": {"availabilityset": {"id": "[resourceid('microsoft.compute/availabilitysets", variables('availabilitysetname'))]"}, "hardwareprofile": {"vmsize": "[parameters('vmsize')]"}, "osprofile": {"computername": "[variables('vmname3')]", "adminusername": "[parameters('username')]", "adminpassword": "[parameters('adminpasswordorkey')]", "linuxconfiguration": "[if(equals(parameters('authenticationtype'), "password'), json('null'), variables('linuxconfiguration'))]"}, "storageprofile": {"imagereference": {"publisher": "[parameters('imagepublisher')]", "offer": "[parameters('imageoffer')]", "sku": "[parameters('imagesku')]", "version": "latest"}, "osdisk": {"name": "[concat(variables('vmname3'),"_osdisk')]", "caching": "readwrite", "createoption": "fromimage"}, "datadisks": [{"name": "[concat(variables('vmname3'),"_datadisk1')]", "disksizegb": "1000", "lun": 0, "createoption": "empty"}, {"name": "[concat(variables('vmname3'),"_datadisk2')]", "disksizegb": "1000", "lun": 1, "createoption": "empty"}]}, "networkprofile": {"networkinterfaces": [{"id": "[variables('nicid3')]"}]}}}{"type": "microsoft.compute/virtualmachines/extensions", "name": "[concat(variables('vmname3'),"/", variables('vmextensionname'))]", "apiversion": "2015-06-15", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.compute/virtualmachines", variables('vmname3'))]", "[resourceid('microsoft.compute/virtualmachines/extensions",variables('vmname1'), variables('vmextensionname'))]"], "properties": {"publisher": "microsoft.azure.extensions", "type": "customscript", "typehandlerversion": "2.0", "autoupgrademinorversion": true, "settings": {"fileuris": ["[uri(parameters('_artifactslocation'), concat('azurepxc.sh", parameters('_artifactslocationsastoken')))]"]}, "protectedsettings": {"commandtoexecute": "[concat(variables('customscriptcommandcommon'), variables('customscriptparamvm3'))]"}}}