0

I have resource group i want to create an alert when a new resource is added to that resource group by using application-Insights

1 Answers1

2

You should use Log Analytics workspace to monitor this behavior(As far as I know, application insights cannot monitor resource group when a new resource is added).

Here are the steps:

1.In azure portal -> your Log Analytics workspace -> Logs, write the query like this:

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

2.Then click the + New alert rule button.

enter image description here

3.In the Create rule page, set the proper values as per screenshot below:

enter image description here

4.Complete other settings.

Please let me know if you still have more issues.

Ivan Glasenberg
  • 29,865
  • 2
  • 44
  • 60
  • what is Create Deployment in where OperationName == "Create Deployment" – karthik kasula Apr 17 '20 at 12:57
  • When a new resource is added to azure, then in the logs, it will log the information "Create Deployment". So you can consider "create deployment" equals to "add new resource". Hope it helps. – Ivan Glasenberg Apr 20 '20 at 01:40