This sample contains a script to easily migrate template gallery templates to templateSpec resources.
{"name": "mysql", "type": "microsoft.resources/deployments", "apiversion": "2020-10-01", "properties": {"mode": "incremental", "templatelink": {"uri": "[uri(parameters('_artifactslocation'), concat('nested/mysql-replication.json", parameters('_artifactslocationsastoken')))]", "contentversion": "1.0.0.0"}, "parameters": {"location": {"value": "[parameters('location')]"}, "dnsname": {"value": "[parameters('dnsname')]"}, "vmusername": {"value": "[parameters('vmusername')]"}, "mysqlrootpassword": {"value": "[parameters('mysqlrootpassword')]"}, "mysqlreplicationpassword": {"value": "[parameters('mysqlreplicationpassword')]"}, "mysqlprobepassword": {"value": "[parameters('mysqlprobepassword')]"}, "vmsize": {"value": "[parameters('vmsize')]"}, "virtualnetworkname": {"value": "[parameters('virtualnetworkname')]"}, "vnetneworexisting": {"value": "[parameters('vnetneworexisting')]"}, "dbsubnetname": {"value": "[parameters('dbsubnetname')]"}, "vnetaddressprefix": {"value": "[parameters('vnetaddressprefix')]"}, "dbsubnetaddressprefix": {"value": "[parameters('dbsubnetaddressprefix')]"}, "dbsubnetstartaddress": {"value": "[parameters('dbsubnetstartaddress')]"}, "imagepublisher": {"value": "[parameters('imagepublisher')]"}, "imageoffer": {"value": "[parameters('imageoffer')]"}, "imagesku": {"value": "[parameters('imagesku')]"}, "mysqlfrontendport0": {"value": "[parameters('mysqlfrontendport0')]"}, "mysqlfrontendport1": {"value": "[parameters('mysqlfrontendport1')]"}, "sshnatrulefrontendport0": {"value": "[parameters('sshnatrulefrontendport0')]"}, "sshnatrulefrontendport1": {"value": "[parameters('sshnatrulefrontendport1')]"}, "mysqlprobeport0": {"value": "[parameters('mysqlprobeport0')]"}, "mysqlprobeport1": {"value": "[parameters('mysqlprobeport1')]"}, "publicipname": {"value": "[parameters('publicipname')]"}, "authenticationtype": {"value": "[parameters('authenticationtype')]"}, "adminpasswordorkey": {"value": "[parameters('adminpasswordorkey')]"}, "_artifactslocation": {"value": "[parameters('_artifactslocation')]"}, "_artifactslocationsastoken": {"value": "[parameters('_artifactslocationsastoken')]"}}}} 