Delen via


AdvisorExtensions.GetConfigurationsAsync Method

Definition

Overloads

GetConfigurationsAsync(ResourceGroupResource, CancellationToken)

Retrieve Azure Advisor configurations.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Advisor/configurations
  • Operation Id: Configurations_ListByResourceGroup
GetConfigurationsAsync(SubscriptionResource, CancellationToken)

Retrieve Azure Advisor configurations and also retrieve configurations of contained resource groups.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Advisor/configurations
  • Operation Id: Configurations_ListBySubscription

GetConfigurationsAsync(ResourceGroupResource, CancellationToken)

Source:
AdvisorExtensions.cs

Retrieve Azure Advisor configurations.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Advisor/configurations
  • Operation Id: Configurations_ListByResourceGroup
public static Azure.AsyncPageable<Azure.ResourceManager.Advisor.Models.ConfigData> GetConfigurationsAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, System.Threading.CancellationToken cancellationToken = default);
static member GetConfigurationsAsync : Azure.ResourceManager.Resources.ResourceGroupResource * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Advisor.Models.ConfigData>
<Extension()>
Public Function GetConfigurationsAsync (resourceGroupResource As ResourceGroupResource, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of ConfigData)

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of ConfigData that may take multiple service requests to iterate over.

Exceptions

resourceGroupResource is null.

Applies to

GetConfigurationsAsync(SubscriptionResource, CancellationToken)

Source:
AdvisorExtensions.cs

Retrieve Azure Advisor configurations and also retrieve configurations of contained resource groups.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Advisor/configurations
  • Operation Id: Configurations_ListBySubscription
public static Azure.AsyncPageable<Azure.ResourceManager.Advisor.Models.ConfigData> GetConfigurationsAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetConfigurationsAsync : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Advisor.Models.ConfigData>
<Extension()>
Public Function GetConfigurationsAsync (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of ConfigData)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of ConfigData that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to