/// <summary> /// Retrieve the automation agent registration information. /// <see href="http://aka.ms/azureautomationsdk/agentregistrationoperations" /> /// </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 AgentRegistration Get(this IAgentRegistrationInformationOperations operations, string resourceGroupName, string automationAccountName) { return(operations.GetAsync(resourceGroupName, automationAccountName).GetAwaiter().GetResult()); }