Create Azure alert for vnet creation only

mij2020 361 Reputation points
2023-08-02T13:59:49.2066667+00:00

Hi - I'd like to be alerted whenever a new vnet is created.

I see a signal alert called "Create or Update Virtual Network" but this alerts on any write activities on the vnet including any changes to it. I only wish to know when the vnet is created.

Any idea how this can be achieved?

Thanks

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,667 questions
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,026 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sina Salam 2,216 Reputation points
    2023-08-02T17:40:49.8233333+00:00

    Hello @mij2020

    Welcome to the Microsoft Q&A and thank you for posting your questions here.

    You were asking how to configure your Azure alert to inform you when the vnet is created.

    There are many ways you can do this:

    1. You can set up alerts on metrics, logs, and the activity log in Azure Monitor to get notified when a new virtual network is created and create an alert rule that uses the Virtual Network Created event in the Activity Log.
    2. You can also use Log Analytics to create a query that returns a list of virtual networks created in your subscription and then create an alert rule based on that query.
    3. Additionally, you can use Metrics Explorer to create an alert rule based on metrics for virtual networks.

    To use step by step for the first mentioned, kindly follow this steps:

    • Sign in to the Azure portal, and select Monitor > Alerts to create alerts.
    • Select + New Alert Rule to create a new alert.
    • Define the alert condition. <look for the kind of condition you want>
    • Define the alert details. <provide details for the alert>
    • Define the action group. <provide group and who's information to receive the alert>
    • Save

    If you would like to read more kindly use the below links to read about:

    1. Overview of Azure Monitor alerts
    2. Types of Azure Monitor alerts
    3. Creating Metric Alerts for Logs in Azure Monitor

    I hope this is helpful! Do not hesitate to let me know if you have any other questions.

    Please remember to "Accept Answer" if answer helped, so that others in the community facing similar issues can easily find the solution.

    Best Regards,

    Sina Salam