使用Application Insights将新资源添加到资源组时,如何创建警报

时间:2020-04-17 06:59:22

标签: azure azure-active-directory azure-web-app-service azure-application-insights azure-application-insights-profiler

我有一个资源组,当我使用application-Insights将新资源添加到该资源组时,我想创建一个警报

1 个答案:

答案 0 :(得分:2)

您应该使用Log Analytics workspace来监视此行为(据我所知,当添加新资源时,应用程序见解无法监视资源组)。

以下是步骤:

1。在azure门户->您的Log Analytics workspace->日志中,编写如下查询:

AzureActivity 
| where ResourceGroup == "the resource group name" 
| where OperationName == "Create Deployment" 

2。然后单击+ New alert rule button

enter image description here

3。在Create rule页上,根据以下屏幕截图设置适当的值:

enter image description here

4。完成其他设置。

如果您还有其他问题,请告诉我。