How to create an alert processing rule filtered on resource creation with a given name

El Khamkhami, Ayman 0 Reputation points
2023-08-11T12:08:38.1833333+00:00

Hi,

I am trying to create an alert processing rule that would send an email notification to an action group.

I created an alert with a defined scope limited to All SQL Databases and a signal based on Create/Update Database. Then I created an alert processing rule that would send and email based on the filter: Resource -> Equals (or Contains) the database name I want to be alerted with.

User's image

I am still receiving emails on all database creation events, regardless of the filter I am setting.

What am I doing wrong?

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,645 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. tbgangav-MSFT 10,426 Reputation points Moderator
    2023-08-13T14:14:42.43+00:00

    Hi @El Khamkhami, Ayman ,

    As per this Azure document, a scope is a list of one or more specific Azure resources, a specific resource group, or an entire subscription. So, I believe we can't define scope limited to resource type. However, to accomplish your requirement, we could leverage resource type filter as explained in the same Azure document i.e., resource type filter helps the rule to apply only to alerts on resources from the specified resource type. So, you could configure alert processing rule something like shown in below screenshot.

    User's image

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.