Reputation: 185
Looking for some help around Azure alerts.
I need to get notified whenever any Azure resource is deleted. From what I have read so far I know an alert can be created at a resource level. But it will be too cumbersome to setup alert for each resource individually.
Ideally I would like to have a rule set up at Subscription level or Resource Group level which notify when any resource in Sub/ Resource group is deleted.
Will highly appreciate any help I can get with this.
Upvotes: 3
Views: 3588
Reputation: 72181
you could, actually just stream activity logs to azure log analytics and then you could use a simple query like so:
AzureActivity
| where OperationNameValue endswith "DELETE"
and then just click that + New alert rule
button and your are all set.
Upvotes: 2
Reputation: 222692
Currently, the Alert level at the Subscription level is NOT supported
. However, you can upvote the request here.
The only way to do is to create the rule for each resource as you mentioned in the question.
Upvotes: 1