public CreateOrUpdateLinkedService ( string resourceGroupName, string dataFactoryName, string linkedServiceName, string rawJsonContent ) : Microsoft.Azure.Management.DataFactories.Models.LinkedService | ||
resourceGroupName | string | |
dataFactoryName | string | |
linkedServiceName | string | |
rawJsonContent | string | |
return | Microsoft.Azure.Management.DataFactories.Models.LinkedService |
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;
}