protected virtual Function CreateOrUpdatePSFunction(string resourceGroupName, string jobName, string functionName, string rawJsonContent)
{
if (string.IsNullOrWhiteSpace(rawJsonContent))
{
throw new ArgumentNullException("rawJsonContent");
}
// If create failed, the current behavior is to throw
var response = StreamAnalyticsManagementClient.Functions.CreateOrUpdateWithRawJsonContent(
resourceGroupName,
jobName,
functionName,
new FunctionCreateOrUpdateWithRawJsonContentParameters() { Content = rawJsonContent });
return response.Function;
}