我有一个资源组,当我使用application-Insights将新资源添加到该资源组时,我想创建一个警报
答案 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
。
3。在Create rule
页上,根据以下屏幕截图设置适当的值:
4。完成其他设置。
如果您还有其他问题,请告诉我。