Get-AzFunctionAppAvailableLocation
获取给定 OS 和计划类型的函数应用可用位置。
语法
Default (默认值)
Get-AzFunctionAppAvailableLocation
[[-SubscriptionId] <String[]>]
[[-PlanType] <String>]
[[-OSType] <String>]
[-ZoneRedundancy]
[[-DefaultProfile] <PSObject>]
[<CommonParameters>]
说明
获取给定 OS 和计划类型的函数应用可用位置。
示例
示例 1:获取高级版可用于 Windows 的位置。 如果未指定任何参数,PlanType 将设置为“Premium”,OSType 设置为“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
此命令获取高级版可用于 Windows 的位置。
示例 2:获取高级版可用于 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
此命令获取高级版可用于 Linux 的位置。
示例 3:获取可供 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
此命令获取可用于 Windows 的消耗位置。
示例 4:获取弹性消耗可用位置
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
此命令获取弹性消耗可用位置。
示例 5:获取弹性消耗支持区域冗余的位置
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
此命令检索弹性消耗可用且支持区域冗余的位置。
参数
-DefaultProfile
用于与 Azure 通信的凭据、帐户、租户和订阅。
参数属性
| 类型: | PSObject |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
| 别名: | AzureRMContext, AzureCredential |
参数集
(All)
| Position: | 4 |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-OSType
服务计划的 OS 类型。
参数属性
| 类型: | String |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | 3 |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-PlanType
计划类型。 有效输入:消耗或高级
参数属性
| 类型: | String |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | 2 |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-SubscriptionId
Azure 订阅 ID。
参数属性
| 类型: | String[] |
| 默认值: | (Get-AzContext).Subscription.Id |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | 1 |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-ZoneRedundancy
筛选列表以仅返回支持区域冗余的位置。
参数属性
| 类型: | SwitchParameter |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
CommonParameters
此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters。