Share via


MonitorExtensions.GetAutoscaleSettingsAsync Method

Definition

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

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to