我正在配置诊断和用于Azure网站的IIS日志. Azure管理门户显示了将应用程序诊断存储到Azure表存储的选项:
I am configuring Diagnostics & IIS Logs for Azure Websites. Azure Manage Portal shows options to store Application Diagnostics to Azure Table Storage:
并在单击管理表存储"时弹出一个对话框,以提供Azure表详细信息:
And pops up a dialog on clicking 'manage table storage' to provide Azure Table details:
对Blob存储的站点诊断:
Site Diagnostics to Blob Storage:
我正在搜索Azure Cmdlet以在部署时使用PowerShell启用这些功能.
I am searching for Azure Cmdlet to enable these using PowerShell at deployment time.
这是我可以找到的Cmdlet,但它没有提供表详细信息的任何选项:
Here is the Cmdlet i could find but it doesnt have any option to provide table details:
启用Azure网站应用诊断
C:\PS>Enable-AzureWebsiteApplicationDiagnostic -Name MyWebsite -Storage -LogLevel Information -StorageAccountName myaccount还有其他方法吗?
推荐答案显然,这已在Azure PowerShell cmdlet的最新版本(截至2016年3月21日)中得到修复.现在,您可以指定表格/容器的名称,例如
This is apparently fixed in the latest (as of 3/21/2016) release of the Azure PowerShell cmdlets. You can now specify the table/container name, e.g.
Enable-AzureWebsiteApplicationDiagnostic -Name <mysite> -Slot production -StorageAccountName <storageAccountName> -BlobStorage -StorageBlobContainerName <containerName> -LogLevel Verbose
Enable-AzureWebsiteApplicationDiagnostic -Name <mysite> -Slot production -StorageAccountName <storageAccountName> -TableStorage -StorageTableName <tableName> -LogLevel Verbose
更多推荐
Azure PowerShell:启用应用程序诊断和站点诊断
发布评论