Skip to content

Commit da55374

Browse files
author
Billy York
committed
added unassociated public ips
1 parent 8b0b800 commit da55374

File tree

2 files changed

+33
-18
lines changed

2 files changed

+33
-18
lines changed

ZeroToHero.MD

Lines changed: 28 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
# Azure Resource Graph - Zero to Hero
22

3-
## Table of Contents
4-
[link](#Dynamic Types)
3+
## Table of Contents
4+
- [Purpose](#Purpose)
5+
- [Kusto Query Lanaguage](#Kusto-Query-Language)
6+
- [Access](#Access)
7+
- [Tables](#Tables)
8+
- [List of Tables](#List-of-Current-Tables)
9+
- [Resource Types](#Resource-Types)
10+
- [Dynamic Types](#Dynamic-Types)
11+
- [Operators to Know](#Operators-to-Know)
12+
- [Basic Examples](#Basic-Examples)
13+
- [Advanced Examples](#Advanced-Examples)
514
  
615
## Purpose
716
To provide a guided walk through of learning Azure Resource Graph from the basics, to advanced queries.
@@ -39,6 +48,21 @@ resources
3948
Are the same query and produce the same results. I would consider it a better practice to always declare a table, as there are now other tables to choose from than just the resources table.
4049
  
4150
  
51+
### List of Current tables
52+
- resources
53+
- advisorresources
54+
- alertsmanagementresources
55+
- guestconfigurationresources
56+
- maintenanceresources
57+
- patchassessmentresources
58+
- pathcinstallationresources
59+
- policyresources
60+
- recoveryservicesresources
61+
- resourcecontainers
62+
- securityresources
63+
- servicehealthresources
64+
  
65+
  
4266
## Resource Types
4367
When querying the resources table, every resource has a resource type, in Azure these are your resource providers.
4468

@@ -66,22 +90,8 @@ resources
6690
| where type =~ 'microsoft.operationalinsights/workspaces'
6791
  
6892
  
69-
### List of Current tables
70-
- resources
71-
- advisorresources
72-
- alertsmanagementresources
73-
- guestconfigurationresources
74-
- maintenanceresources
75-
- patchassessmentresources
76-
- pathcinstallationresources
77-
- policyresources
78-
- recoveryservicesresources
79-
- resourcecontainers
80-
- securityresources
81-
- servicehealthresources
82-
  
83-
  
84-
### Dynamic Types ###
93+
94+
## Dynamic Types
8595
This section is usefull to any product that uses Kusto Query Language, but is key in extracting useful data out of Azure Resource Graph.
8696

8797
Once you get beyond querying basic items like resource groups, subscriptions and resource types, you'll find many of the properites of your resources are underneath fields of dynamic type that often hold nested JSON-like values. Sometimes there are multiple levels of nested objects in one field, typically in the properties field of your resources.

resourceQueries/Orphaned Resources/OrphanedResource.MD

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ resources
3030
| extend VirtualMachines = array_length(properties.virtualMachines)
3131
| where VirtualMachines == 0
3232

33+
## Public IPs
34+
resources
35+
| where type =~ 'microsoft.network/publicipaddresses'
36+
| extend IpConfig = properties.ipConfiguration.id
37+
| where isempty(IpConfig)
3338
## Networking
3439
### NSGs
3540
Resources

0 commit comments

Comments
 (0)