我創建了一個函式應用 ARM 模板和引數 JSON 檔案,并通過 CLI 進行了部署。問題是,然而,我調整模板,我總是最終得到一個 Linux 函式應用程式。
當我在部署后點擊匯出模板時,函式應用的型別會自動更改為:
"kind": "functionapp,linux",
有什么方法可以將 Windows 作業系統功能應用部署到 Azure?微軟根本沒有記錄這一點。
這是我的 ARM 模板(重要部分):
"type": "Microsoft.Web/sites",
"apiVersion": "2018-11-01",
"name": "[parameters('name')]",
"location": "[parameters('location')]",
"dependsOn": [
"[resourceId('Microsoft.Web/serverfarms', parameters('app_serviceplan_name'))]",
"[resourceId('Microsoft.Storage/storageAccounts', parameters('storage_account_name'))]"
],
"tags": {},
"kind": "functionapp",
"identity": {
"type": "SystemAssigned"
},
"properties": {
"name": "[parameters('name')]",
"siteConfig": {
"appSettings": [
{
"name": "FUNCTIONS_WORKER_RUNTIME",
"value": "node"
},
{
"name": "FUNCTIONS_EXTENSION_VERSION",
"value": "~3"
},
{
"name": "WEBSITE_NODE_DEFAULT_VERSION",
"value": "~14"
},
{
"name": "APPINSIGHTS_INSTRUMENTATIONKEY",
"value": "[BLANK_HERE_FOR_SECURITY_PURPOSES]"
},
{
"name": "AzureWebJobsStorage",
"value": "[concat('BLANK_HERE_FOR_SECURITY_PURPOSES')]"
}
]
},
"serverFarmId": "[resourceId('Microsoft.Web/serverfarms', parameters('app_serviceplan_name'))]",
{
"type": "Microsoft.Web/serverfarms",
"apiVersion": "2018-02-01",
"name": "[parameters('app_serviceplan_name')]",
"location": "[parameters('location')]",
"sku": {
"name": "EP1",
"tier": "ElasticPremium",
"size": "EP1",
"family": "EP",
"capacity": 1
},
"kind": "elastic",
"properties": {
"perSiteScaling": false,
"maximumElasticWorkerCount": 20,
"isSpot": false,
"reserved": true,
"isXenon": false,
"hyperV": false,
"targetWorkerCount": 0,
"targetWorkerSizeId": 0
}
},
uj5u.com熱心網友回復:
請完成您的 ARM 模板。然后更容易測驗。保留的屬性必須設定為false。
解決辦法應該是:
{
"type": "Microsoft.Web/serverfarms",
"apiVersion": "2018-02-01",
"name": "[parameters('app_serviceplan_name')]",
"location": "[parameters('location')]",
"sku": {
"name": "EP1",
"tier": "ElasticPremium",
"size": "EP1",
"family": "EP",
"capacity": 1
},
"kind": "elastic",
"properties": {
"perSiteScaling": false,
"maximumElasticWorkerCount": 20,
"isSpot": false,
"reserved": false,
"isXenon": false,
"hyperV": false,
"targetWorkerCount": 0,
"targetWorkerSizeId": 0
}
}
特性:
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/329477.html
標籤:天蓝色 手臂 天蓝色函数 azure-app-service-plans
上一篇:在Azure應用服務Web作業中使用X509KeyStorageFlags.EphemeralKeySet時出錯

