MonitorExtensions.GetAutoscaleSettings 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
GetAutoscaleSettings(SubscriptionResource, CancellationToken) |
Lists the autoscale settings for a subscription
|
GetAutoscaleSettings(ResourceGroupResource) |
Gets a collection of AutoscaleSettingResources in the ResourceGroupResource. MockingTo mock this method, please mock GetAutoscaleSettings() instead. |
GetAutoscaleSettings(SubscriptionResource, CancellationToken)
- Source:
- MonitorExtensions.cs
- Source:
- MonitorExtensions.cs
Lists the autoscale settings for a subscription
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/autoscalesettings
- Operation Id: AutoscaleSettings_ListBySubscription
- Default Api Version: 2022-10-01
- Resource: AutoscaleSettingResource
public static Azure.Pageable<Azure.ResourceManager.Monitor.AutoscaleSettingResource> GetAutoscaleSettings (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetAutoscaleSettings : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Monitor.AutoscaleSettingResource>
<Extension()>
Public Function GetAutoscaleSettings (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of AutoscaleSettingResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of AutoscaleSettingResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource
is null.
Applies to
GetAutoscaleSettings(ResourceGroupResource)
- Source:
- MonitorExtensions.cs
- Source:
- MonitorExtensions.cs
Gets a collection of AutoscaleSettingResources in the ResourceGroupResource. MockingTo mock this method, please mock GetAutoscaleSettings() instead.
public static Azure.ResourceManager.Monitor.AutoscaleSettingCollection GetAutoscaleSettings (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetAutoscaleSettings : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Monitor.AutoscaleSettingCollection
<Extension()>
Public Function GetAutoscaleSettings (resourceGroupResource As ResourceGroupResource) As AutoscaleSettingCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource instance the method will execute against.
Returns
An object representing collection of AutoscaleSettingResources and their operations over a AutoscaleSettingResource.
Exceptions
resourceGroupResource
is null.
Applies to
Azure SDK for .NET