/// <summary> /// Retrieve the content of runbook identified by runbook name. /// <see href="http://aka.ms/azureautomationsdk/runbookoperations" /> /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of an Azure Resource group. /// </param> /// <param name='automationAccountName'> /// The name of the automation account. /// </param> /// <param name='runbookName'> /// The runbook name. /// </param> public static Stream GetContent(this IRunbookOperations operations, string resourceGroupName, string automationAccountName, string runbookName) { return(operations.GetContentAsync(resourceGroupName, automationAccountName, runbookName).GetAwaiter().GetResult()); }