Skip to content

Azure Resource Graph connector

The built-in Azure Resource Graph connector queries resource inventory and supported resource-change data across subscriptions or management groups. It also manages saved shared queries. Connector availability can vary by environment and region.

  1. Add an action in the workflow designer and select Azure Resource Graph.
  2. Choose an action and select or create its connection.
  3. For a resource query, provide the query text and subscription or management group scope. For shared query actions, select the subscription and any required resource group and query name.
  4. Test the action and inspect its output.
ActionWhat it does
Run a resource queryRun a Resource Graph query across the selected subscriptions or management groups.
List shared queries in a subscriptionList saved queries in a subscription.
List shared queries in a resource groupList saved queries in a resource group.
Get a shared queryRetrieve a saved query’s text and metadata.
Create or replace a shared querySave a reusable query without running it.
Update a shared queryChange a saved query’s text, description, or tags without running it.
Delete a shared queryDelete a saved query, not the resources it returns.

For example, retrieve a saved shared query, pass its query text to Run a resource query with the execution scope you choose, and use the results in a later workflow action.

Resource queries can return a partial result. Inspect resultTruncated and $skipToken: when a $skipToken is returned, pass it in the next request’s options.$skipToken with the same query and scope. Check for a token even when resultTruncated is "false"; a truncated result doesn’t always include a token.

The shared-query list actions can return a nextLink for more results, but they don’t expose a continuation input. A single response might not contain every shared query.

This connector provides actions only. Start the workflow with a separate trigger, such as Recurrence, before querying resources.