Edit

Share via


Get-AzFunctionAppAvailableLocation

Gets the location where a function app for the given os and plan type is available.

Syntax

Default (Default)

Get-AzFunctionAppAvailableLocation
    [[-SubscriptionId] <String[]>]
    [[-PlanType] <String>]
    [[-OSType] <String>]
    [-ZoneRedundancy]
    [[-DefaultProfile] <PSObject>]
    [<CommonParameters>]

Description

Gets the location where a function app for the given os and plan type is available.

Examples

Example 1: Get the locations where Premium is available for Windows. If no parameters are specified, PlanType is set to 'Premium' and OSType is set to 'Windows'.

Get-AzFunctionAppAvailableLocation
Name
----
Central US
North Europe
West Europe
Southeast Asia
East Asia
West US
East US
Japan West
Japan East
East US 2
North Central US
South Central US
Brazil South
Australia East
Australia Southeast
East Asia (Stage)
West India
South India
Canada Central
West US 2
UK West
UK South
East US 2 EUAP
Central US EUAP
Korea Central
France Central
Australia Central 2
Australia Central
Germany West Central
Norway East

This command gets the locations where Premium is available for Windows.

Example 2: Get the locations where Premium is available for Linux.

Get-AzFunctionAppAvailableLocation -PlanType Premium -OSType Linux
Name
----
Central US
North Europe
West Europe
Southeast Asia
East Asia
West US
East US
Japan West
Japan East
East US 2
North Central US
South Central US
Brazil South
Australia East
Australia Southeast
West India
Canada Central
West Central US
West US 2
UK West
UK South
Central US EUAP
Korea Central
France Central
Norway East

This command gets the locations where Premium is available for Linux.

Example 3: Get the locations where Consumption is available for Windows.

Get-AzFunctionAppAvailableLocation -PlanType Consumption -OSType Windows
Name
----
Central US
North Europe
West Europe
Southeast Asia
East Asia
West US
East US
Japan West
Japan East
East US 2
North Central US
South Central US
Brazil South
Australia East
Australia Southeast
East Asia (Stage)
Central India
West India
South India
Canada Central
Canada East
West Central US
West US 2
UK West
UK South
East US 2 EUAP
Central US EUAP
Korea Central
France Central
Australia Central 2
Australia Central
South Africa North
Switzerland North
Germany West Central

This command gets the locations where Consumption is available for Windows.

Example 4: Get the locations where Flex Consumption is available

Get-AzFunctionAppAvailableLocation -PlanType FlexConsumption
Name
----
Canada Central
North Europe
West Europe
Southeast Asia
East Asia
West US
Japan West
Japan East
East US 2
North Central US
South Central US
Brazil South
Australia East
Australia Southeast
Central US
East US
North Central US (Stage)
Central India
South India
Canada East
West Central US
West US 2
UK West
UK South
East US 2 EUAP
Korea Central
France South
France Central
South Africa North
Switzerland North
Germany West Central
Switzerland West
UAE North
Norway East
West US 3
Sweden Central
Poland Central
Italy North
Israel Central
Spain Central
Mexico Central
Taiwan North
Taiwan Northwest
New Zealand North
Indonesia Central
Malaysia West

This command gets the locations where Flex Consumption is available.

Example 5: Get the locations where Flex Consumption supports Zone Redundancy

Get-AzFunctionAppAvailableLocation -PlanType FlexConsumption -ZoneRedundancy
Name
----
Canada Central
Southeast Asia
East Asia
Australia East
East US
Central India
UK South
East US 2 EUAP
South Africa North
Germany West Central
UAE North
Norway East
West US 3
Sweden Central
Italy North
Israel Central

This command retrieves the locations where Flex Consumption is available and zone redundancy is supported.

Parameters

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Parameter properties

Type:PSObject
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzureRMContext, AzureCredential

Parameter sets

(All)
Position:4
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-OSType

The OS type for the service plan.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:3
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-PlanType

The plan type. Valid inputs: Consumption or Premium

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:2
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-SubscriptionId

The Azure subscription ID.

Parameter properties

Type:

String[]

Default value:(Get-AzContext).Subscription.Id
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:1
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ZoneRedundancy

Filter the list to return only locations which support zone redundancy.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Outputs

IGeoRegion