我正在使用 ARM 模板将应用程序部署到 Azure App 服务,并希望在 App 服务的 App Settings 中的 WEBSITES_LOAD_CERTIFICATES 中加载两个证书的指纹。
{
"apiVersion": "2015-04-01",
"name": "[parameters('webAppName')]",
"type": "Microsoft.Web/sites",
"location": "[resourceGroup().location]",
"dependsOn": [
"[concat('Microsoft.Web/serverFarms/',variables('appServicePlanName'))]",
"[concat('Microsoft.Web/certificates/',variables('certificateName'))]"
],
"properties": {
"serverFarmId": "[resourceId('Microsoft.Web/serverFarms',variables('appServicePlanName'))]",
"siteConfig": {
"appSettings": [
{
"name": "WEBSITE_LOAD_CERTIFICATES",
"value": "[reference(resourceId('Microsoft.Web/certificates', variables('certificateName'))).Thumbprint]"
}
]
}
}
我已经尝试如下但给出错误。我没有找到加载两个证书指纹的任何帮助。
"properties": {
"serverFarmId": "[resourceId('Microsoft.Web/serverFarms',variables('appServicePlanName'))]",
"siteConfig": {
"appSettings": [
{
"name": "WEBSITE_LOAD_CERTIFICATES",
"value": "[reference(resourceId('Microsoft.Web/certificates', variables('certificateName'))).Thumbprint],[reference(resourceId('Microsoft.Web/certificates', variables('certificateName1'))).Thumbprint]"
},
]
}
},
请帮助使用 ARM 模板将两个证书指纹加载到 WEBSITES_LOAD_CERTIFICATES 尝试如下但仅加载第二个证书指纹。
"appSettings": [
{
"name": "WEBSITE_LOAD_CERTIFICATES",
"value": "[reference(resourceId('Microsoft.Web/certificates', variables('certificateName'))).Thumbprint]",
"value": "[reference(resourceId('Microsoft.Web/certificates', variables('certificateName1'))).Thumbprint]"
},