We control our billings by a specific tag, for example: "Product_A", sometimes other teams are tagging resources incorrectly with our tag.
Is there a way to have an alert on Azure that send a notification when a new resource is added or modified in a resource group uppon our tag?
I'm open to others options.
Thanks in advance
After a workaround on your requirement, I found few approaches, one of which is shown below to set up an alert rule conditionally.
In the Portal, create a
log analytics workspaceand browse toLogson the left blade view. When you click on it, a query editor opens, which is used to retrieve the logs. I performed the query below as per the request you provided, and it was successful.After that, go to
New Alert ruleto create an alert rule using the custom log search shown below.Now, in the create rule, enter the required values and settings (for example,
thresholdetc..) and create a rule accordingly.Alert rule is created after all the above steps.
Another approach:
You can also ARM template creating an action group with an email target and enables all health notifications and it is clearly detailed in MSDoc with the sample template.