AdvisorExtensions.GetConfigurations Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetConfigurations(ResourceGroupResource, CancellationToken) |
Retrieve Azure Advisor configurations.
|
GetConfigurations(SubscriptionResource, CancellationToken) |
Retrieve Azure Advisor configurations and also retrieve configurations of contained resource groups.
|
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.