Share via


MockableAppServiceSubscriptionResource.GetGeoRegionsAsync Method

Definition

Description for Get a list of available geographical regions.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Web/geoRegions
  • Operation Id: ListGeoRegions
  • Default Api Version: 2024-04-01
public virtual Azure.AsyncPageable<Azure.ResourceManager.AppService.Models.AppServiceGeoRegion> GetGeoRegionsAsync (Azure.ResourceManager.AppService.Models.AppServiceSkuName? sku = default, bool? linuxWorkersEnabled = default, bool? xenonWorkersEnabled = default, bool? linuxDynamicWorkersEnabled = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetGeoRegionsAsync : Nullable<Azure.ResourceManager.AppService.Models.AppServiceSkuName> * Nullable<bool> * Nullable<bool> * Nullable<bool> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.AppService.Models.AppServiceGeoRegion>
override this.GetGeoRegionsAsync : Nullable<Azure.ResourceManager.AppService.Models.AppServiceSkuName> * Nullable<bool> * Nullable<bool> * Nullable<bool> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.AppService.Models.AppServiceGeoRegion>
Public Overridable Function GetGeoRegionsAsync (Optional sku As Nullable(Of AppServiceSkuName) = Nothing, Optional linuxWorkersEnabled As Nullable(Of Boolean) = Nothing, Optional xenonWorkersEnabled As Nullable(Of Boolean) = Nothing, Optional linuxDynamicWorkersEnabled As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of AppServiceGeoRegion)

Parameters

sku
Nullable<AppServiceSkuName>

Name of SKU used to filter the regions.

linuxWorkersEnabled
Nullable<Boolean>

Specify <code>true</code> if you want to filter to only regions that support Linux workers.

xenonWorkersEnabled
Nullable<Boolean>

Specify <code>true</code> if you want to filter to only regions that support Xenon workers.

linuxDynamicWorkersEnabled
Nullable<Boolean>

Specify <code>true</code> if you want to filter to only regions that support Linux Consumption Workers.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to