/// <summary> /// Retrieves a policy set definition. /// </summary> /// <remarks> /// This operation retrieves the policy set definition in the given management /// group with the given name. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='policySetDefinitionName'> /// The name of the policy set definition to get. /// </param> /// <param name='managementGroupId'> /// The ID of the management group. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <PolicySetDefinition> GetAtManagementGroupAsync(this IPolicySetDefinitionsOperations operations, string policySetDefinitionName, string managementGroupId, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetAtManagementGroupWithHttpMessagesAsync(policySetDefinitionName, managementGroupId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }