karthik kasula
karthik kasula

Reputation: 37

How to create an alert when new resource is added to resource group using Application Insights

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

Upvotes: 0

Views: 1559

Answers (1)

Ivan Glasenberg
Ivan Glasenberg

Reputation: 29950

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.

Upvotes: 2

Related Questions