This sample contains a script to easily migrate template gallery templates to templateSpec resources.
{"name": "provisionconfiguration", "type": "microsoft.resources/deployments", "apiversion": "2018-02-01", "properties": {"mode": "incremental", "templatelink": {"uri": "[variables('provisionconfigurationurl')]", "contentversion": "1.0.0.0"}, "parameters": {"_artifactslocation": {"value": "[parameters('_artifactslocation')]"}, "_artifactslocationsastoken": {"value": "[parameters('_artifactslocationsastoken')]"}, "automationaccountname": {"value": "[variables('automationaccountname')]"}, "location": {"value": "[parameters('location')]"}, "compilename": {"value": "[parameters('compilename')]"}}}}{"name": "provisionnetwork", "type": "microsoft.resources/deployments", "apiversion": "2018-02-01", "properties": {"mode": "incremental", "templatelink": {"uri": "[variables('provisionnetworkurl')]", "contentversion": "1.0.0.0"}, "parameters": {"location": {"value": "[parameters('location')]"}, "virtualnetworkname": {"value": "[variables('virtualnetworkname')]"}, "virtualnetworkaddressrange": {"value": "[parameters('virtualnetworkaddressrange')]"}, "virtualnetworksubnets": {"value": "[variables('virtualnetworksubnets')]"}, "publicipaddressname": {"value": "[variables('publicipaddressname')]"}, "publicipaddresstype": {"value": "[variables('publicipaddresstype')]"}, "loadbalancername": {"value": "[variables('loadbalancername')]"}}}} 