/// <summary> /// Get information about an Automation Account. /// <see href="http://aka.ms/azureautomationsdk/automationaccountoperations" /> /// </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> public static AutomationAccount Get(this IAutomationAccountOperations operations, string resourceGroupName, string automationAccountName) { return(operations.GetAsync(resourceGroupName, automationAccountName).GetAwaiter().GetResult()); }
/// <summary> /// Retrieve the account by account name. (see /// http://aka.ms/azureautomationsdk/automationaccountoperations for /// more information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Automation.IAutomationAccountOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group /// </param> /// <param name='automationAccount'> /// Required. The automation account name. /// </param> /// <returns> /// The response model for the get account operation. /// </returns> public static Task <AutomationAccountGetResponse> GetAsync(this IAutomationAccountOperations operations, string resourceGroupName, string automationAccount) { return(operations.GetAsync(resourceGroupName, automationAccount, CancellationToken.None)); }