powershell 新 AzAppServicePlan

问题描述 投票:0回答:1

我尝试配置一个 powershell 脚本来部署具有区域冗余的 new-azAppServicePlan,但我未能做到这一点。 它可以在 cli 中完成,但我无法使用 powershell 弄清楚它。

##Part 1 - Create a new Linux App Service Plan

$ResourceGroupName = "-sandbox-ASE"
$ServicePlanName = "-service-plan01"
$location = "southafricanorth"

New-AzAppServicePlan `
-ResourceGroupName $ResourceGroupName `
-Name $ServicePlanName `
-Location $location `
--Tier "PremiumV3" `
-NumberofWorkers 1 `
-WorkerSize "Small" `
-Linux `
-ZoneRedundant $true

我尝试过: -ZoneRedundant $true 和 -1、2、3区

azure powershell azure-app-service-plans
1个回答
0
投票

在上面的 cmdlet 中,您使用

--Tier
而不是
-Tier
传递 Tier 属性,后者不受支持。

此外,如果要部署具有区域冗余的应用程序服务计划,则需要使用 AzCLI cmdlet az appservice plan create 具有

--zone-redundant
属性的 cmdlet。

请参阅 本文档,了解有关 cmdlet 支持的属性的更多信息

© www.soinside.com 2019 - 2024. All rights reserved.