服务器场(服务计划)SKU
Server farm (service plan) SKUs
是否存在列出 Azure 应用服务计划(服务器场)支持的 sku 名称和层级的文档。
例如:
姓名:"S1",
等级:"Standard" = S1 标准。
和
姓名:"Y1",
等级:"Dynamic" = 函数消费计划。
支持值列表(是否有 Y2 消费计划?)和服务器配置将真正有助于规划。
有多种方法可以找到资源的 sku 和功能。 link 为您推荐了几个选项:https://docs.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"
}
}
is there an Y2 consumption plan?
目前Azure不支持,Azure只支持一种消费计划。
有关此的更多信息,请参阅此 official document:Azure App Service plan overview。
此 API 提供了现有应用服务计划可用的应用服务计划 SKU 列表
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/skus?api-version=2016-09-01
Microsoft 文档是 here
依水而建...
在您的模板中使用以下片段:
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"appServicePlanSkuName": {
"type": "string",
"allowedValues": [
//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
"EP1", //ElasticPremium
"EP2", //ElasticPremium
"EP3" //ElasticPremium
]
},
...
然后定义Microsoft.Web/serverFarms资源:
"resources": [
{
"location": "[parameters('location')]",
"name": "[parameters('appServicePlanName')]",
"type": "Microsoft.Web/serverFarms",
"apiVersion": "2018-02-01",
"kind": "linux",
"properties": {
"name": "[parameters('appServicePlanName')]",
"reserved": true,
"targetWorkerCount": 1,
"targetWorkerSizeId": "[parameters('appServicePlanWorkerSizeId')]",
},
"sku": {
"name": "[parameters('appServicePlanSkuName')]"
}
}
...
是否存在列出 Azure 应用服务计划(服务器场)支持的 sku 名称和层级的文档。
例如: 姓名:"S1", 等级:"Standard" = S1 标准。
和 姓名:"Y1", 等级:"Dynamic" = 函数消费计划。
支持值列表(是否有 Y2 消费计划?)和服务器配置将真正有助于规划。
有多种方法可以找到资源的 sku 和功能。 link 为您推荐了几个选项:https://docs.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"
}
}
is there an Y2 consumption plan?
目前Azure不支持,Azure只支持一种消费计划。
有关此的更多信息,请参阅此 official document:Azure App Service plan overview。
此 API 提供了现有应用服务计划可用的应用服务计划 SKU 列表
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/skus?api-version=2016-09-01
Microsoft 文档是 here
依水而建... 在您的模板中使用以下片段:
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"appServicePlanSkuName": {
"type": "string",
"allowedValues": [
//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
"EP1", //ElasticPremium
"EP2", //ElasticPremium
"EP3" //ElasticPremium
]
},
...
然后定义Microsoft.Web/serverFarms资源:
"resources": [
{
"location": "[parameters('location')]",
"name": "[parameters('appServicePlanName')]",
"type": "Microsoft.Web/serverFarms",
"apiVersion": "2018-02-01",
"kind": "linux",
"properties": {
"name": "[parameters('appServicePlanName')]",
"reserved": true,
"targetWorkerCount": 1,
"targetWorkerSizeId": "[parameters('appServicePlanWorkerSizeId')]",
},
"sku": {
"name": "[parameters('appServicePlanSkuName')]"
}
}
...