Loading...

Announcing the Public Preview of Alerting on Azure Resource Graph

Announcing the Public Preview of Alerting on Azure Resource Graph

Azure Resource Graph is an Azure service designed to provide efficient and performant resource exploration with the ability to query at scale across a given set of subscriptions so that you can effectively govern your environment. While customers could provide complex queries to get visibility into their environments, there was no easy way to proactively identify issues and get notified. 

We are happy to announce that you can enable alerts on Azure Resource Graph queries using Azure Monitor alerting. With this feature, you have the option to customize alerts based on the results of your ARG (Azure Resource Graph) queries. This means that not only can you gain insights from your resource data, but you can also take proactive actions when predefined criteria are met.

 

How to Get Started

To create an alert on ARG queries, you need to have a Log Analytics Workspace and a Managed identity with reader permission for the resource.  Here is a basic guide to help you set up your first ARG alert.  

  1. Go to Azure portal to access Azure Monitor and click on either Alerts or Logs.  
  2. From the Logs query builder, craft Azure Resource Graph queries and execute them to obtain results by utilizing the specified prefix arg("").Table_name as shown in the picture below.
    Saandrine_0-1699904898951.pngarg("").resourcechanges | extend Target = tostring(properties.targetResourceType), changeType = tostring(properties.changeType), targetResourceId = tostring(properties.targetResourceId), timestamp = todatetime(properties.changeAttributes.timestamp), correlationId = todatetime(properties.changeAttributes.correlationId) | where changeType == "Delete"
  3. After checking the results, click on “New alert rule” and follow the steps from choosing the Log Analytics workspace previously created as the scope of the rule execution to “create” the alert rule. 

Sample Scenarios & Examples 

Alert on Failed update runs

 

arg("").maintenanceresources | extend failed = toint(properties.resourceUpdateSummary.failed), timeout = toint(properties.resourceUpdateSummary.timedout), maintenanceId = tostring(properties.maintenanceConfigurationId), EndTime = todatetime(properties.endDateTime) | where failed > 0 or timeout > 0 | where EndTime > ago(12h) | summarize Failed=count() by maintenanceId

 

 

Alert on VMs (Virtual Machines) needing patches

 

arg("").patchassessmentresources | where type has "softwarepatches" | extend id = tolower(id) | parse id with resourceId "/patchassessmentresults" * | where isnotnull(properties.kbId) | extend MissingUpdate = tostring(properties.patchName), Classification = tostring(properties.classifications[0]) | extend UpdatesNeeded = pack_array(MissingUpdate, Classification) | summarize UpdatesNeeded = make_set(UpdatesNeeded), Count= count() by resourceId

 

 

Related Resources 

To learn about this exciting capability, refer to:

 

This is one of many features that we plan to bring to you for rich alerting capabilities on Azure Resource Graph queries. We want to build featuresthat will help you quickly identify issues within your IT landscape, whichis why we would appreciate your feedback and collaboration opportunity here. We look forward toworkingwith you as we build out the alerting on Azure Resource Graph capabilities.

 

Happy Alerting!

 

Feedback 

If you have any feedback for Azure Resource Graph service, post your ideas here. If you're just getting started with Azure Resource Graph, you can learn about the service hereand follow us on Twitter for the latest updates.  

Published on:

Learn more
Azure Governance and Management Blog articles
Azure Governance and Management Blog articles

Azure Governance and Management Blog articles

Share post:

Related posts

Report on partial license assignments via the Graph SDK for PowerShell

In this article, we explore a simple PowerShell script to report on "partial" license assignments in Microsoft 365, that is licenses for which...

22 hours ago

Lewis and Laura vs. Fabric Notebooks and Microsoft Graph: Part 1

This week my friend Laura GB told me about some fun she was having with Python in Fabric Notebooks, working to access Excel table data for pro...

1 day ago

Microsoft Teams Copilot without transcription becomes default for meetings – conversation history now persists

Microsoft Teams Copilot will default to running without transcription for new meetings starting mid-September 2025, with conversation history ...

1 day ago

SharePoint Pages: Sections with AI

Sections with AI in SharePoint Pages enables users to create rich page sections using natural language prompts powered by Copilot. Rolling out...

1 day ago

Viva Engage: Export event posts

Viva Engage event organizers can export posts from the past 28 days as a .csv file, including content, status, timestamps, upvotes, and reacti...

1 day ago

Microsoft Teams: New organizer controls for in-meeting management

Microsoft Teams introduces Organizer Controls in the meeting toolbar, consolidating management features into one menu for improved usability a...

1 day ago

Microsoft 365 Copilot Chat: New ways to include files and emails in prompts

Microsoft 365 Copilot Chat now lets users quickly include files and emails in prompts by typing ‘/’ to search and reference content, enhancing...

1 day ago

Microsoft 365 Copilot: New ways to include files and emails as part of prompts in chat web scope

Microsoft 365 Copilot Chat now lets users easily include files and emails in prompts by typing ‘/’ to search and reference content, enhancing ...

1 day ago

Copilot in Teams meetings: user-controlled on/off toggle

Microsoft Teams will soon let users toggle Copilot off during meetings, disabling recording, transcripts, and Facilitator while off. Rollout s...

1 day ago

Microsoft Copilot (Microsoft 365): Reference a Loop or Page when creating a presentation with Copilot

You can now reference a Loop or Page when you create a presentation with Copilot within the PowerPoint application. Product PowerPoint Release...

1 day ago
Stay up to date with latest Microsoft Dynamics 365 and Power Platform news!
* Yes, I agree to the privacy policy