共用方式為


AdvisorExtensions.GetConfigurations Method

Definition

Overloads

GetConfigurations(ResourceGroupResource, CancellationToken)

Retrieve Azure Advisor configurations.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Advisor/configurations
  • Operation Id: Configurations_ListByResourceGroup
GetConfigurations(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

GetConfigurations(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.Pageable<Azure.ResourceManager.Advisor.Models.ConfigData> GetConfigurations (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, System.Threading.CancellationToken cancellationToken = default);
static member GetConfigurations : Azure.ResourceManager.Resources.ResourceGroupResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Advisor.Models.ConfigData>
<Extension()>
Public Function GetConfigurations (resourceGroupResource As ResourceGroupResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ConfigData)

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

resourceGroupResource is null.

Applies to

GetConfigurations(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.Pageable<Azure.ResourceManager.Advisor.Models.ConfigData> GetConfigurations (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetConfigurations : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Advisor.Models.ConfigData>
<Extension()>
Public Function GetConfigurations (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ConfigData)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to