Language

AppServiceExtensions.GetGeoRegions Method

Definition

Overloads

Name Description
GetGeoRegions(SubscriptionResource, Nullable<AppServiceSkuName>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, CancellationToken)

Description for Get a list of available geographical regions.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Web/geoRegions
  • Operation Id: ListGeoRegions
<item>MockingTo mock this method, please mock GetGeoRegions(Nullable<AppServiceSkuName>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, CancellationToken) instead.</item>
GetGeoRegions(SubscriptionResource, Nullable<AppServiceSkuName>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, CancellationToken)

Description for Get a list of available geographical regions.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Web/geoRegions
  • Operation Id: ListGeoRegions
  • Default Api Version: 2025-05-01
<item>MockingTo mock this method, please mock GetGeoRegions(Nullable<AppServiceSkuName>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, CancellationToken) instead.</item>

GetGeoRegions(SubscriptionResource, Nullable<AppServiceSkuName>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, CancellationToken)

Source:
AppServiceExtensions.cs
Source:
AppServiceExtensions.cs

Description for Get a list of available geographical regions.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Web/geoRegions
  • Operation Id: ListGeoRegions
<item>MockingTo mock this method, please mock GetGeoRegions(Nullable<AppServiceSkuName>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, CancellationToken) instead.</item>
public static Azure.Pageable<Azure.ResourceManager.AppService.Models.AppServiceGeoRegion> GetGeoRegions(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.AppService.Models.AppServiceSkuName? sku, bool? linuxWorkersEnabled, bool? xenonWorkersEnabled, bool? linuxDynamicWorkersEnabled, System.Threading.CancellationToken cancellationToken);
public static Azure.Pageable<Azure.ResourceManager.AppService.Models.AppServiceGeoRegion> GetGeoRegions(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.AppService.Models.AppServiceSkuName? sku = default, bool? linuxWorkersEnabled = default, bool? xenonWorkersEnabled = default, bool? linuxDynamicWorkersEnabled = default, System.Threading.CancellationToken cancellationToken = default);
static member GetGeoRegions : Azure.ResourceManager.Resources.SubscriptionResource * Nullable<Azure.ResourceManager.AppService.Models.AppServiceSkuName> * Nullable<bool> * Nullable<bool> * Nullable<bool> * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.AppService.Models.AppServiceGeoRegion>
<Extension()>
Public Function GetGeoRegions (subscriptionResource As SubscriptionResource, sku As Nullable(Of AppServiceSkuName), linuxWorkersEnabled As Nullable(Of Boolean), xenonWorkersEnabled As Nullable(Of Boolean), linuxDynamicWorkersEnabled As Nullable(Of Boolean), cancellationToken As CancellationToken) As Pageable(Of AppServiceGeoRegion)
<Extension()>
Public Function GetGeoRegions (subscriptionResource As SubscriptionResource, 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 Pageable(Of AppServiceGeoRegion)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

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

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

Exceptions

subscriptionResource is null.

Applies to

GetGeoRegions(SubscriptionResource, Nullable<AppServiceSkuName>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, CancellationToken)

Source:
AppServiceExtensions.cs

Description for Get a list of available geographical regions.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Web/geoRegions
  • Operation Id: ListGeoRegions
  • Default Api Version: 2025-05-01
<item>MockingTo mock this method, please mock GetGeoRegions(Nullable<AppServiceSkuName>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, CancellationToken) instead.</item>
public static Azure.Pageable<Azure.ResourceManager.AppService.Models.AppServiceGeoRegion> GetGeoRegions(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.AppService.Models.AppServiceSkuName? sku = default, bool? linuxWorkersEnabled = default, bool? xenonWorkersEnabled = default, bool? linuxDynamicWorkersEnabled = default, bool? customModeWorkersEnabled = default, System.Threading.CancellationToken cancellationToken = default);
static member GetGeoRegions : Azure.ResourceManager.Resources.SubscriptionResource * Nullable<Azure.ResourceManager.AppService.Models.AppServiceSkuName> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Nullable<bool> * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.AppService.Models.AppServiceGeoRegion>
<Extension()>
Public Function GetGeoRegions (subscriptionResource As SubscriptionResource, 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 customModeWorkersEnabled As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of AppServiceGeoRegion)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

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.

customModeWorkersEnabled
Nullable<Boolean>

Specify <code>true</code> if you want to filter to only regions that support App Service Plans with <code>IsCustomMode</code> set to <code>true</code>.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to