public virtual LinkedService CreateOrUpdateLinkedService(string resourceGroupName, string dataFactoryName,
string linkedServiceName, string rawJsonContent)
{
if (string.IsNullOrWhiteSpace(rawJsonContent))
{
throw new ArgumentNullException("rawJsonContent");
}
// If create or update failed, the current behavior is to throw
var response =
DataPipelineManagementClient.LinkedServices.CreateOrUpdateWithRawJsonContent(
resourceGroupName,
dataFactoryName,
linkedServiceName,
new LinkedServiceCreateOrUpdateWithRawJsonContentParameters() { Content = rawJsonContent });
return response.LinkedService;
}