This sample contains a script to easily migrate template gallery templates to templateSpec resources.
{"name": "rancherdeploy", "type": "microsoft.resources/deployments", "apiversion": "2019-09-01", "properties": {"mode": "incremental", "templatelink": {"uri": "[variables('templatedeployurl')]", "contentversion": "1.0.0.0"}, "parameters": {"adminusername": {"value": "[parameters('adminusername')]"}, "adminpassword": {"value": "[parameters('adminpassword')]"}, "ranchername": {"value": "[parameters('uniquedeployprefix')]"}, "ranchervmsize": {"value": "[parameters('vmsize')]"}, "location": {"value": "[parameters('location')]"}}}} 