有谁知道如何使用 Azure 资源管理器(Powershell 或 JSON)在 Azure Web 应用程序上设置以下诊断设置。
使用 .json 我只能找到这些设置
"requestTracingEnabled": true, /* Failed request tracing, aka 'freb' */
"httpLoggingEnabled": true, /* IIS logs (aka Web server logging) */
"logsDirectorySizeLimit": 40, /* 40 MB limit for IIS logs */
"detailedErrorLoggingEnabled": true, /* Detailed error messages */
Run Code Online (Sandbox Code Playgroud)
这会打开 Web 服务器日志记录到文件系统,而不是应用程序日志记录或 Blob 存储。
使用 Powershell,此命令似乎仅适用于 ASM,因为它找不到提供给它的非经典存储帐户
Enable-AzureWebsiteApplicationDiagnostic
Run Code Online (Sandbox Code Playgroud)
任何帮助,将不胜感激。我们目前使用的是 Azure Powershell 0.9.8
问候
我们正在使用Azure资源管理器创建部署模板.我们几乎所有设置都已设置,但创建的主机规划没有获得正确的定价等级.无论我们使用什么价值,它似乎总是默认为"免费"'F1'定价计划.
这是部分
{
"apiVersion": "2015-08-01",
"type": "Microsoft.Web/serverfarms",
"name": "[variables('sitePlanName')]",
"location": "[resourceGroup().location]",
"sku": {
"name": "B1",
"tier": "Basic",
"capacity": 1
},
"properties": {
"numberOfWorkers": 1
}
},
Run Code Online (Sandbox Code Playgroud)
任何想法将不胜感激.
问候