有多种方法可以查找资源的 SKU 和功能。此链接为您参考了一些选项:https://learn.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-sku-not-available-errors https://learn.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-sku-not-available-errors
当前的服务器场描述是:
name Tier Full name
D1 Shared an D1 Shared
F1 Free an F1 Free
B1 Basic an B1 Basic
B2 Basic an B2 Basic
B3 Basic an B3 Basic
S1 Standard an S1 Standard
S2 Standard an S2 Standard
S3 Standard an S3 Standard
P1 Premium an P1 Premium
P2 Premium an P2 Premium
P3 Premium an P3 Premium
P1V2 PremiumV2 an P1V2 PremiumV2
P2V2 PremiumV2 an P2V2 PremiumV2
P3V2 PremiumV2 an P3V2 PremiumV2
I1 Isolated an I2 Isolated
I2 Isolated an I2 Isolated
I3 Isolated an I3 Isolated
Y1 Dynamic a function consumption plan
要部署服务器场,请在 ARM 中使用以下资源定义:
{
"type": "Microsoft.Web/serverfarms",
"apiVersion": "2016-09-01",
"name": "[parameters('hostingPlanName')]",
"location": "[resourceGroup().location]",
"properties": {
"name": "[parameters('hostingPlanName')]"
},
"sku": {
"name": "[parameters('hostingPlanSkuName')]",
"tier": "[parameters('hostingPlanSkuTier')]"
}
}
或者制定消费计划;您可以使用更具体的 api 版本:
{
"type": "Microsoft.Web/serverfarms",
"apiVersion": "2015-04-01",
"name": "[variables('hostingPlanName')]",
"location": "[resourceGroup().location]",
"properties": {
"name": "[variables('hostingPlanName')]",
"computeMode": "Dynamic",
"sku": "Dynamic"
}
}
有Y2消费计划吗?
目前,Azure 不支持此功能,Azure 仅支持一种类型的消费计划。
有关此的更多信息请参阅此官方文档:Azure App Service计划概述 https://learn.microsoft.com/en-us/azure/app-service/azure-web-sites-web-hosting-plans-in-depth-overview.