Azure ARM 应用服务存储装载不再有效
Azure ARM app service storage mount no longer works
我正在尝试将 docker 容器部署到已声明存储挂载的 azure 应用程序服务,这以前可以工作,但现在似乎不再工作了?根据文档,在 siteConfig 上使用 azureStorageAccounts 应该是可行的..但无论我尝试什么,现在看起来都坏了,也在 ms 社区网站上提出了..
ARM模板示例是这样的(使用槽时,也尝试过不使用槽)
"resources": [
{
"apiVersion": "2018-02-01",
"name": "[parameters('appServiceSlotName')]",
"type": "slots",
"location": "[resourceGroup().location]",
"dependsOn": [
"[resourceId('Microsoft.Web/Sites', variables('App').name)]"
],
"properties": {
"siteConfig": {
"alwaysOn": true,
"ftpsState": "Disabled",
"http20Enabled": true,
"linuxFxVersion": "[concat('DOCKER|', variables('App').ContainerImage)]",
"azureStorageAccounts": {
"appdata": {
"type": "AzureFiles",
"accountName": "[parameters('storageAccountName')]",
"shareName": "api",
"accessKey": "[parameters('storageAccountKey')]",
"mountPath": "/home/appdata"
}
},
"appSettings": "[variables('App').Settings]"
},
"httpsOnly": true,
"clientAffinityEnabled": false,
"reserved": true
}
}
]
有谁知道有什么变化吗? (似乎在他们更改配置在门户中的外观的同时中断)
事实证明这是 Azure 错误的回归,将在更新的补丁中修复。
我正在尝试将 docker 容器部署到已声明存储挂载的 azure 应用程序服务,这以前可以工作,但现在似乎不再工作了?根据文档,在 siteConfig 上使用 azureStorageAccounts 应该是可行的..但无论我尝试什么,现在看起来都坏了,也在 ms 社区网站上提出了..
ARM模板示例是这样的(使用槽时,也尝试过不使用槽)
"resources": [
{
"apiVersion": "2018-02-01",
"name": "[parameters('appServiceSlotName')]",
"type": "slots",
"location": "[resourceGroup().location]",
"dependsOn": [
"[resourceId('Microsoft.Web/Sites', variables('App').name)]"
],
"properties": {
"siteConfig": {
"alwaysOn": true,
"ftpsState": "Disabled",
"http20Enabled": true,
"linuxFxVersion": "[concat('DOCKER|', variables('App').ContainerImage)]",
"azureStorageAccounts": {
"appdata": {
"type": "AzureFiles",
"accountName": "[parameters('storageAccountName')]",
"shareName": "api",
"accessKey": "[parameters('storageAccountKey')]",
"mountPath": "/home/appdata"
}
},
"appSettings": "[variables('App').Settings]"
},
"httpsOnly": true,
"clientAffinityEnabled": false,
"reserved": true
}
}
]
有谁知道有什么变化吗? (似乎在他们更改配置在门户中的外观的同时中断)
事实证明这是 Azure 错误的回归,将在更新的补丁中修复。