What is Azure Resource Graph
Azure Resource Graph is a service in Azure that is designed to extend Azure Resource Management by providing efficient and performant resource exploration with the ability to query at scale across all subscriptions and management groups so that you can effectively govern your environment. These queries provide the following features:
- Ability to query resources with complex filtering, grouping, and sorting by resource properties.
- Ability to iteratively explore resources based on governance requirements and convert the resulting expression into a policy definition.
- Ability to assess the impact of applying policies in a vast cloud environment.
In this documentation, you'll go over each feature in detail.
Azure Resource Graph is used by Azure portal's new browse 'All resources' experience. It is designed to help customers with a need to manage large-scale environments.
How does Resource Graph complement Azure Resource Manager
Azure Resource Manager currently sends data to a limited resource cache that makes available several resource fields, specifically – Resource name, ID, Type, Resource Group, Subscriptions, and Location. Previously, working with various resource properties required calls to each individual resource provider and request property details for each resource.
With Azure Resource Graph, you can access these properties the resource providers return without needing to make individual calls to each resource provider.
The query language
Now that you have a better understanding of what Azure Resource Graph is, let’s dive into how to construct queries.
It's important to understand that Azure Resource Graph's query language is based on the Kusto query language used by Azure Data Explorer.
Permissions in Azure Resource Graph
To use Resource Graph, you must have appropriate rights in Role-based access
control (RBAC) with at least read access to the
resources you want to query. Without at least
read permissions to the Azure object or object
group, results won't be returned.
Queries to Resource Graph are throttled to provide the best experience and response time for all customers. If your organization wants to use the Resource Graph API for large-scale and frequent queries, please use portal 'Feedback' from the Resource Graph page. Be sure to provide your business case and select the 'Microsoft can email you about your feedback' checkbox in order for the team to contact you.
Running your first query
We'd love to hear your thoughts. Choose the type you'd like to provide:
Our feedback system is built on GitHub Issues. Read more on our blog.