![]() For instance Log Analytics resource type is "OperationalInsights/workspaces." This is because Azure resources are renamed over time but their type cannot necessarily be renamed in Azure. One thing to note on resource types, sometimes types do not match their current name in Azure. To query a specific resource type, like virtual machines, you can use a where clause with type. You can get a count of all resources by using summarize. To get a idea of all the different types of resources in your subscriptions you can run the following query. Notably Azure Sentinel and Azure Security Center are not resources, they are solutions that sit on top of a Log Analytics workspace. With few exceptions everything in Azure is a resource. This is where all resources in your Azure subscriptions will live. The most common table is the "resources" table. There are a number of tables you can query in Azure Resource Graph. This post will use the Azure portal for its examples. Queries can be run against the Azure Resource Graph API, with PowerShell, or in the Azure portal. If you do not have read access to a resource or subscription they will not appear in your resulting data sets. To use Azure Resource Graph successfully, you'll need read access to any subscription and resource(s) that you wish to query. It can do this because it uses a subset of the Kusto Query Language. ![]() It also provides the ability to do complex filtering and grouping. It supports both Azure Lighthouse as well as cross subscription querying. ![]() Azure Resource Graph is an extremely powerful extension to Azure Resource Management that provides efficient resource exploration at scale. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |