简体   繁体   English

Azure 应用服务文件和配置变更监控

[英]Azure App Service File And Configuration Change Monitoring

As part of our production environment we have several App Services running inside of Azure.作为我们生产环境的一部分,我们在 Azure 内部运行了多个应用服务。 I would like to implement notifications to be sent to a specific email address upon file or configuration changes within those App Services.我想在这些应用服务中的文件或配置更改时实现将通知发送到特定的 email 地址。 I have tried enabling Application Changes for the service but it does not appear to provide the capability to set up alerts on the changes,我已经尝试为服务启用应用程序更改,但它似乎没有提供设置更改警报的功能,

在此处输入图像描述

I have also tried enabling App Service alerts but it does not appear that any of the test configuration changes that I have made were captured by the signal "Apply Web App Configuration".我也尝试过启用应用服务警报,但似乎我所做的任何测试配置更改都没有被信号“应用 Web 应用配置”捕获。

在此处输入图像描述

The last thing that I tried was to enable Diagnostic Settings to capture AppServicePlatformLogs and AppServiceFileAuditLogs and stream them to an Event Hub, however, I cannot determine how to set up the email notification from the hub for the events.我尝试的最后一件事是启用诊断设置以将 AppServicePlatformLogs 和 AppServiceFileAuditLogs 和 stream 捕获到事件中心,但是,我无法确定如何从事件中心设置 email 通知。

在此处输入图像描述

I am hoping that there may be an easier way to set this up and was hoping that someone may have some pointers or resources that I can follow.我希望可能有一种更简单的方法来设置它,并希望有人可以提供一些我可以遵循的指针或资源。

I was able to accomplish this under "Monitoring" -> "Alerts".我能够在“监控”->“警报”下完成此操作。 A more detailed walkthrough can be found here https://perituza.com/blog/azure-app-service-monitoring-and-alerts/ .可以在此处找到更详细的演练https://perituza.com/blog/azure-app-service-monitoring-and-alerts/ The key was selecting "Activity Log - Administrative" as the Monitor Service in the Condition.关键是在条件中选择“活动日志 - 管理”作为监控服务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM