This sample contains a script to easily migrate template gallery templates to templateSpec resources.
{"type": "microsoft.resources/deployments", "apiversion": "2017-05-10", "name": "omsworkspace", "dependson": [], "properties": {"mode": "incremental", "templatelink": {"uri": "[variables('nestedtemplates').omsworkspace]", "contentversion": "1.0.0.0"}, "parameters": {"omsworkspacename": {"value": "[variables('resourcenames').omsworkspace]"}, "omsworkspaceregion": {"value": "[variables('azmgmtlocation')]"}}}} 