This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"apiversion": "2017-03-30", "type": "microsoft.compute/virtualmachines", "name": "[variables('vmname')]", "location": "[variables('location')]", "dependson": ["[concat('microsoft.storage/storageaccounts/",variables('uniquestorageaccountname'))]", "[concat('microsoft.network/networkinterfaces/",variables('vmnicname'))]"], "properties": {"hardwareprofile": {"vmsize": "[variables('vmsize')]"}, "osprofile": {"computername": "[variables('vmname')]", "adminusername": "[variables('vmadminusername')]", "adminpassword": "[variables('vmadminpassword')]"}, "storageprofile": {"imagereference": {"publisher": "[variables('imagepublisher')]", "offer": "[variables('imageoffer')]", "sku": "[variables('vmossku')]", "version": "latest"}, "osdisk": {"name": "[concat(variables('vmname'),"_osdisk')]", "caching": "readwrite", "createoption": "fromimage"}}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces",concat(variables('vmnicname')))]"}]}, "diagnosticsprofile": {"bootdiagnostics": {"enabled": true, "storageuri": "[reference(concat('microsoft.storage/storageaccounts/", variables('uniquestorageaccountname')),"2015-06-15').primaryendpoints.blob]"}}}} 