Azure PowerShell:启用应用程序诊断和站点诊断

编程入门 行业动态 更新时间:2024-10-10 17:30:00
本文介绍了Azure PowerShell:启用应用程序诊断和站点诊断的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在配置诊断和用于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:启用应用程序诊断和站点诊断

本文发布于:2023-11-12 13:08:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1581589.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   站点   Azure   PowerShell

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!