Reputation: 37
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
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
.
3.In the Create rule
page, set the proper values as per screenshot below:
4.Complete other settings.
Please let me know if you still have more issues.
Upvotes: 2