Home
%3CLINGO-SUB%20id%3D%22lingo-sub-825599%22%20slang%3D%22en-US%22%3EAn%20Introduction%20to%20Azure%20Resource%20Graph%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-825599%22%20slang%3D%22en-US%22%3E%3CP%3EDo%20you%20need%20the%20ability%20to%20quickly%20explore%20the%20resources%20across%20all%20your%20subscription%20and%20see%20what%20you%20are%20running%3F%20If%20you're%20answer%20is%20yes%2C%20then%20Azure%20Resource%20Graph%20is%20the%20service%20for%20you.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20Azure%20Resource%20graph%2C%20based%20off%20the%20Kusto%20query%20language%2C%20is%20a%20service%20in%20Azure%20that%20gives%20you%20the%20ability%20to%20query%20your%20environment%20at%20scale%20and%20quickly.%20It%20allows%20you%20to%20query%20and%20parse%20the%20properties%20of%20your%20resources%20returned%20by%20resource%20providers%20without%20needing%20to%20make%20individual%20calls%20to%20each%20resource%20provider.%20It%20can%20also%20allow%20you%20to%20view%20the%20last%2014%20days%20of%20change%20history%20made%20to%20the%20resource%20to%20see%20what%20properties%20changed%20and%20when(preview).%20You%20can%20query%20using%20Azure%20CLI%2C%20Azure%20PowerShell%2C%20and%20Azure%20SDK%20for%20.NET.%20And%20using%20the%20Azure%20Resource%20Graph%20Explorer.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAzure%20Resource%20Graph%20was%20designed%20to%20help%20customers%20manage%20large-scale%20environments%20but%20you%20don't%20have%20to%20have%20a%20large%20environment%20to%20see%20its%20value.%20Prior%20to%20Azure%20Resource%20Graph%2C%20the%20process%20to%20query%20your%20resources%20was%20limited%20to%202000%20items%20and%20involved%20complex%20scripts%2C%20which%20at%20times%20would%20cause%20bottlenecks%20and%20timeouts.%20Now%20with%20Azure%20resource%20graph%20all%20resources%20are%20returned%20during%20a%20query.%20The%20power%20of%20the%20service%20can%20also%20be%20seen%20running%20the%20Portal's%20search%20bar%20and%20in%20the%20new%20%22All%20Resources%22%20(in%20Preview)%2C%20all%20of%20which%20is%20now%20being%20powered%20by%20the%20Azure%20Resource%20graph.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20older%20view%20of%20%22All%20Resources%22%20with%20the%20screenshot%20below%20is%20limited%20to%202000%20items.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F128825i27EB3375938F3DA6%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22graphc.png%22%20title%3D%22graphc.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20previous%20screenshot%20can%20only%20show%202000.%20The%20search%20should%20return%20over%209000%20resources.%20Here%E2%80%99s%20what%20the%20same%20search%20looks%20like%20in%20the%20preview%20with%20the%20new%20%22All%20Resources%22.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F128824iE9278C684E68C8BC%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22graphF.png%22%20title%3D%22graphF.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhile%20the%20black%20background%20of%20Azure%20cli%20and%20PowerShell%20is%20quick%20it%20can%20be%20intimating%20to%20others%20that%20are%20not%20so%20comfortable%20with%20command%20line%20%2Cthis%20is%20where%20the%20power%20of%20Azure%20Resource%20Graph%20really%20shines.%20Azure%20Resource%20Graph%20Explorer%20brings%20a%20more%20graphical%20user%20interface%20to%20querying%20your%20resources.%20It%20not%20only%20gives%20you%20a%20UI%20but%20you%20can%20even%20display%20the%20query%20results%20with%20a%20chart%20and%20pin%20those%20results%20to%20your%20dashboard.%20Now%20that's%20something%20you%20can't%20do%20via%20the%20command%20line%20and%20can%20be%20very%20useful%20from%20a%20reporting%20aspect.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAn%20example%20of%20a%20query%20that%20you%20normally%20couldn't%20do%20easily%20is%20query%20any%20running%20disks%20in%20across%20your%20subscriptions%20that%20are%20not%20attached.%20See%20below%20screenshot.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F128818i1F349E88F4F6C38F%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22graphB.gif%22%20title%3D%22graphB.gif%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorclipboard_image_1%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F128823iCF770E75C9922677%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22graphE.JPG%22%20title%3D%22graphE.JPG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ETo%20get%20started%20with%20Azure%20Resource%20graph%20you%20can%20check%20out%20the%20starter%20queries%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fgovernance%2Fresource-graph%2Fsamples%2Fstarter%3FWT.mc_id%3Ditopstalk-blog-phschmit%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehere%3C%2FA%3E.%20Dig%20into%20it%20and%20explore%20across%20your%20subscriptions.%20You%20may%20find%20stuff%20you%20didn%E2%80%99t%20know%20existed.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-825599%22%20slang%3D%22en-US%22%3E%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F128826i05AE275962888846%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22graphH.JPG%22%20title%3D%22graphH.JPG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3EDo%20you%20the%20need%20the%20ability%20to%20see%20what's%20running%20in%20your%20subscriptions%20at%20all%20times%20quickly%3F%20Here's%20the%20service%20for%20you!Query%20quickly%20and%20efficiently%20across%20all%20your%20subscriptions%20and%20tenants%20using%20Azure%20Resource%20Graph.%20Put%20those%20complex%20scripts%20to%20the%20side%20when%20you%20need%20to%20query%20your%20resources%20and%20their%20properties%20at%20scale.%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20line-height%3A%2015pt%3B%20font-family%3A%20'Segoe%20UI'%3B%20font-size%3A%2011.25pt%3B%20color%3A%20black%3B%22%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-825599%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E

Do you need the ability to quickly explore the resources across all your subscription and see what you are running? If you're answer is yes, then Azure Resource Graph is the service for you.

 

The Azure Resource graph, based off the Kusto query language, is a service in Azure that gives you the ability to query your environment at scale and quickly. It allows you to query and parse the properties of your resources returned by resource providers without needing to make individual calls to each resource provider. It can also allow you to view the last 14 days of change history made to the resource to see what properties changed and when(preview). You can query using Azure CLI, Azure PowerShell, and Azure SDK for .NET. And using the Azure Resource Graph Explorer.

 

Azure Resource Graph was designed to help customers manage large-scale environments but you don't have to have a large environment to see its value. Prior to Azure Resource Graph, the process to query your resources was limited to 2000 items and involved complex scripts, which at times would cause bottlenecks and timeouts. Now with Azure resource graph all resources are returned during a query. The power of the service can also be seen running the Portal's search bar and in the new "All Resources" (in Preview), all of which is now being powered by the Azure Resource graph.

 

The older view of "All Resources" with the screenshot below is limited to 2000 items.

 

graphc.png

 

 

The previous screenshot can only show 2000. The search should return over 9000 resources. Here’s what the same search looks like in the preview with the new "All Resources".

 

graphF.png

 

While the black background of Azure cli and PowerShell is quick it can be intimating to others that are not so comfortable with command line ,this is where the power of Azure Resource Graph really shines. Azure Resource Graph Explorer brings a more graphical user interface to querying your resources. It not only gives you a UI but you can even display the query results with a chart and pin those results to your dashboard. Now that's something you can't do via the command line and can be very useful from a reporting aspect.

 

An example of a query that you normally couldn't do easily is query any running disks in across your subscriptions that are not attached. See below screenshot.

 

graphB.gif

 

 

 

graphE.JPG

To get started with Azure Resource graph you can check out the starter queries here. Dig into it and explore across your subscriptions. You may find stuff you didn’t know existed.