【发布时间】:2018-03-16 05:59:01
【问题描述】:
我正在寻找在模板部署阶段启用诊断日志设置(文件级别,而不是 blob)的选项。
我在 Github 上找到了以下 example 但是,它不起作用,说 "Microsoft.Web/sites/logs" is not a valid option"。
以下是我的模板的一部分:
{
"apiVersion": "2015-08-01",
"name": "logs",
"type": "config",
"location": "[resourcegroup().location]",
"dependsOn": [
"[resourceId('Microsoft.Web/Sites', parameters('siteName'))]"
],
"properties": {
"applicationLogs": {
"fileSystem": {
"level": "Verbose"
}
},
"httpLogs": {
"fileSystem": {
"retentionInMb": 100,
"retentionInDays": 90,
"enabled": true
}
},
"failedRequestsTracing": {
"enabled": true
},
"detailedErrorMessages": {
"enabled": true
}
}
},
另外,我发现 following 讨论了一个类似的问题,但主题起始者指出这段代码在大多数情况下都能正常工作。
【问题讨论】:
-
在门户中创建此资源并在资源浏览器中检查它。
-
真的,我忘了。谢谢!
标签: azure azure-resource-manager azure-web-app-service arm-template