Skip to content

Commit

Permalink
Merge pull request #24 from samgovier/patch-1
Browse files Browse the repository at this point in the history
orphaned typo
  • Loading branch information
dolevshor authored Nov 30, 2023
2 parents d1a65e7 + c40513d commit 9312bfb
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions Workbook/Azure Orphaned Resources v2.0.workbook
Original file line number Diff line number Diff line change
Expand Up @@ -2323,7 +2323,7 @@
"query": "resources\r\n| where type =~ \"microsoft.web/serverfarms\"\r\n| where properties.numberOfSites == 0\r\n| extend Details = pack_all()\r\n| project Resource=id, resourceGroup, location, subscriptionId, SKU=sku.name, Tier=sku.tier, tags ,Details",
"size": 3,
"title": "Orphaned App Service Plans",
"noDataMessage": "No oprhaned App Service Plans found.",
"noDataMessage": "No orphaned App Service Plans found.",
"showExportToExcel": true,
"queryType": 1,
"resourceType": "microsoft.resourcegraph/resources",
Expand Down Expand Up @@ -2699,7 +2699,7 @@
"query": "Resources\r\n| where type =~ 'Microsoft.Compute/availabilitySets'\r\n| where properties.virtualMachines == \"[]\"\r\n| extend Details = pack_all()\r\n| project subscriptionId, Resource=id, resourceGroup, location, tags, Details",
"size": 3,
"title": "Orphaned Availability Set",
"noDataMessage": "No oprhaned Availability Set found.",
"noDataMessage": "No orphaned Availability Set found.",
"showExportToExcel": true,
"queryType": 1,
"resourceType": "microsoft.resourcegraph/resources",
Expand Down Expand Up @@ -3312,7 +3312,7 @@
"query": "Resources\r\n| where type has \"microsoft.compute/disks\"\r\n| extend diskState = tostring(properties.diskState)\r\n| where managedBy == \"\" or diskState == 'Unattached'\r\n| where not(name endswith \"-ASRReplica\" or name startswith \"ms-asr-\" or name startswith \"asrseeddisk-\")\r\n| extend Details = pack_all()\r\n| project id, resourceGroup, location, sku.name, properties.diskSizeGB, properties.timeCreated, tags, subscriptionId, Details\r\n",
"size": 3,
"title": "Orphaned Disks",
"noDataMessage": "No oprhaned disks found.",
"noDataMessage": "No orphaned disks found.",
"showExportToExcel": true,
"queryType": 1,
"resourceType": "microsoft.resourcegraph/resources",
Expand Down Expand Up @@ -4038,7 +4038,7 @@
"query": "Resources\r\n| where type == \"microsoft.network/publicipaddresses\"\r\n| where properties.ipConfiguration == \"\" and properties.natGateway == \"\" and properties.publicIPPrefix == \"\"\r\n| extend Details = pack_all()\r\n| project Resource=id, resourceGroup, location, subscriptionId, tostring(sku.name), AllocationMethod=tostring(properties.publicIPAllocationMethod), tags, Details",
"size": 3,
"title": "Orphaned Public IPs",
"noDataMessage": "No oprhaned Public IPs found.",
"noDataMessage": "No orphaned Public IPs found.",
"showExportToExcel": true,
"queryType": 1,
"resourceType": "microsoft.resourcegraph/resources",
Expand Down Expand Up @@ -4433,7 +4433,7 @@
"query": "Resources\r\n| where type has \"microsoft.network/networkinterfaces\"\r\n| where isnull(properties.privateEndpoint)\r\n| where isnull(properties.privateLinkService)\r\n| where properties.hostedWorkloads == \"[]\"\r\n| where properties !has 'virtualmachine'\r\n| extend Details = pack_all()\r\n| project Resource=id, resourceGroup, location, tags, subscriptionId, Details",
"size": 3,
"title": "Orphaned Network Interfaces",
"noDataMessage": "No oprhaned Network Interfaces found.",
"noDataMessage": "No orphaned Network Interfaces found.",
"showExportToExcel": true,
"queryType": 1,
"resourceType": "microsoft.resourcegraph/resources",
Expand Down Expand Up @@ -4808,7 +4808,7 @@
"query": "Resources\r\n| where type == \"microsoft.network/networksecuritygroups\" and isnull(properties.networkInterfaces) and isnull(properties.subnets)\r\n| extend Details = pack_all()\r\n| project subscriptionId, Resource=id, resourceGroup, location, tags, Details",
"size": 3,
"title": "Orphaned Network Security Group",
"noDataMessage": "No oprhaned NSGs found.",
"noDataMessage": "No orphaned NSGs found.",
"showExportToExcel": true,
"queryType": 1,
"resourceType": "microsoft.resourcegraph/resources",
Expand Down Expand Up @@ -5194,7 +5194,7 @@
"query": "resources\r\n| where type == \"microsoft.network/routetables\"\r\n| where isnull(properties.subnets)\r\n| extend Details = pack_all()\r\n| project subscriptionId, Resource=id, resourceGroup, location, tags, Details",
"size": 3,
"title": "Orphaned Route Tables",
"noDataMessage": "No oprhaned Route Tables found.",
"noDataMessage": "No orphaned Route Tables found.",
"showExportToExcel": true,
"queryType": 1,
"resourceType": "microsoft.resourcegraph/resources",
Expand Down Expand Up @@ -5719,7 +5719,7 @@
"query": "resources\r\n| where type == \"microsoft.network/loadbalancers\"\r\n| where properties.backendAddressPools == \"[]\"\r\n| extend Details = pack_all()\r\n| project subscriptionId, Resource=id, resourceGroup, location, tostring(sku.name), tags, Details",
"size": 3,
"title": "Orphaned Load Balances",
"noDataMessage": "No oprhaned Load Balances found.",
"noDataMessage": "No orphaned Load Balances found.",
"showExportToExcel": true,
"queryType": 1,
"resourceType": "microsoft.resourcegraph/resources",
Expand Down Expand Up @@ -6117,7 +6117,7 @@
"query": "resources\r\n| where type == \"microsoft.network/frontdoorwebapplicationfirewallpolicies\"\r\n| where properties.frontendEndpointLinks== \"[]\" and properties.securityPolicyLinks == \"[]\"\r\n| extend Details = pack_all()\r\n| project Resource=id, resourceGroup, location, subscriptionId, SKU=sku.name, tags, Details",
"size": 3,
"title": "Orphaned Front Door WAF Policy",
"noDataMessage": "No oprhaned Front Door WAF Policy found.",
"noDataMessage": "No orphaned Front Door WAF Policy found.",
"showExportToExcel": true,
"queryType": 1,
"resourceType": "microsoft.resourcegraph/resources",
Expand Down Expand Up @@ -6372,7 +6372,7 @@
"query": "resources\r\n| where type == \"microsoft.network/trafficmanagerprofiles\"\r\n| where properties.endpoints == \"[]\"\r\n| extend Details = pack_all()\r\n| project Resource=id, resourceGroup, location, subscriptionId, tags, Details",
"size": 3,
"title": "Orphaned Traffic Managers",
"noDataMessage": "No oprhaned Traffic Managers found.",
"noDataMessage": "No orphaned Traffic Managers found.",
"showExportToExcel": true,
"queryType": 1,
"resourceType": "microsoft.resourcegraph/resources",
Expand Down Expand Up @@ -6897,7 +6897,7 @@
"query": "resources\r\n| where type =~ 'microsoft.network/applicationgateways'\r\n| extend backendPoolsCount = array_length(properties.backendAddressPools),SKUName= tostring(properties.sku.name), SKUTier= tostring(properties.sku.tier),SKUCapacity=properties.sku.capacity,backendPools=properties.backendAddressPools , AppGwId = tostring(id)\r\n| project AppGwId, resourceGroup, location, subscriptionId, tags, name, SKUName, SKUTier, SKUCapacity\r\n| join (\r\n resources\r\n | where type =~ 'microsoft.network/applicationgateways'\r\n | mvexpand backendPools = properties.backendAddressPools\r\n | extend backendIPCount = array_length(backendPools.properties.backendIPConfigurations)\r\n | extend backendAddressesCount = array_length(backendPools.properties.backendAddresses)\r\n | extend backendPoolName = backendPools.properties.backendAddressPools.name\r\n | extend AppGwId = tostring(id)\r\n | summarize backendIPCount = sum(backendIPCount) ,backendAddressesCount=sum(backendAddressesCount) by AppGwId\r\n) on AppGwId\r\n| project-away AppGwId1\r\n| where (backendIPCount == 0 or isempty(backendIPCount)) and (backendAddressesCount==0 or isempty(backendAddressesCount))\r\n| extend Details = pack_all()\r\n| project Resource=AppGwId, resourceGroup, location, subscriptionId, SKUTier, SKUCapacity, tags, Details",
"size": 3,
"title": "Orphaned Application Gateway",
"noDataMessage": "No oprhaned Application Gateway found.",
"noDataMessage": "No orphaned Application Gateway found.",
"showExportToExcel": true,
"queryType": 1,
"resourceType": "microsoft.resourcegraph/resources",
Expand Down Expand Up @@ -7336,7 +7336,7 @@
"query": "resources\r\n| where type == \"microsoft.network/virtualnetworks\"\r\n| where properties.subnets == \"[]\"\r\n| extend Details = pack_all()\r\n| project subscriptionId, Resource=id, resourceGroup, location, tags, Details",
"size": 3,
"title": "Orphaned Virtual Networks",
"noDataMessage": "No oprhaned Virtual Networks found.",
"noDataMessage": "No orphaned Virtual Networks found.",
"showExportToExcel": true,
"queryType": 1,
"resourceType": "microsoft.resourcegraph/resources",
Expand Down Expand Up @@ -7864,7 +7864,7 @@
"query": "resources\r\n| where type =~ \"microsoft.network/virtualnetworks\"\r\n| extend subnet = properties.subnets\r\n| mv-expand subnet\r\n| extend Details = pack_all()\r\n| where isnull(subnet.properties.ipConfigurations)\r\n| project subscriptionId, Resource=subnet.id, VNetName=name, SubnetName=tostring(subnet.name) ,resourceGroup, location, Details",
"size": 3,
"title": "Orphaned Subnets",
"noDataMessage": "No oprhaned Subnets found",
"noDataMessage": "No orphaned Subnets found",
"showExportToExcel": true,
"queryType": 1,
"resourceType": "microsoft.resourcegraph/resources",
Expand Down Expand Up @@ -8541,7 +8541,7 @@
"query": "resources\r\n| where type == \"microsoft.network/natgateways\"\r\n| where isnull(properties.subnets)\r\n| extend Details = pack_all()\r\n| project subscriptionId, Resource=id, resourceGroup, location, tostring(sku.name), tostring(sku.tier), tags, Details",
"size": 3,
"title": "Orphaned NAT Gateways",
"noDataMessage": "No oprhaned NAT Gateways found.",
"noDataMessage": "No orphaned NAT Gateways found.",
"showExportToExcel": true,
"queryType": 1,
"resourceType": "microsoft.resourcegraph/resources",
Expand Down Expand Up @@ -8951,7 +8951,7 @@
"query": "resources\r\n| where type == \"microsoft.network/ipgroups\"\r\n| where properties.firewalls == \"[]\" and properties.firewallPolicies == \"[]\"\r\n| extend Details = pack_all()\r\n| project subscriptionId, Resource=id, resourceGroup, location, tags, Details",
"size": 3,
"title": "Orphaned IP Groups",
"noDataMessage": "No oprhaned IP Groups found.",
"noDataMessage": "No orphaned IP Groups found.",
"showExportToExcel": true,
"queryType": 1,
"resourceType": "microsoft.resourcegraph/resources",
Expand Down Expand Up @@ -9372,7 +9372,7 @@
"query": "ResourceContainers\r\n | where type == \"microsoft.resources/subscriptions/resourcegroups\"\r\n | extend rgAndSub = strcat(resourceGroup, \"--\", subscriptionId)\r\n | join kind=leftouter (\r\n Resources\r\n | extend rgAndSub = strcat(resourceGroup, \"--\", subscriptionId)\r\n | summarize count() by rgAndSub\r\n ) on rgAndSub\r\n | where isnull(count_)\r\n | extend Details = pack_all()\r\n | project subscriptionId, Resource=id, location, tags ,Details",
"size": 3,
"title": "Orphaned Resource Groups",
"noDataMessage": "No oprhaned Resource Groups found.",
"noDataMessage": "No orphaned Resource Groups found.",
"showExportToExcel": true,
"queryType": 1,
"resourceType": "microsoft.resourcegraph/resources",
Expand Down Expand Up @@ -9736,7 +9736,7 @@
"query": "resources\r\n| where type =~ 'Microsoft.Web/connections'\r\n| project resourceId = id , apiName = name, subscriptionId, resourceGroup, tags, location\r\n| join kind = leftouter (\r\n resources\r\n | where type == 'microsoft.logic/workflows'\r\n | extend resourceGroup, location, subscriptionId, properties\r\n | extend var_json = properties[\"parameters\"][\"$connections\"][\"value\"]\r\n\t| mvexpand var_connection = var_json\r\n | where notnull(var_connection)\r\n | extend connectionId = extract(\"connectionId\\\":\\\"(.*?)\\\"\", 1, tostring(var_connection))\r\n | project connectionId, name\r\n )\r\n on $left.resourceId == $right.connectionId\r\n| where connectionId == \"\"\r\n| extend Details = pack_all()\r\n| project resourceId, resourceGroup, location, subscriptionId, tags, Details",
"size": 3,
"title": "Orphaned API Connections",
"noDataMessage": "No oprhaned API Connections found.",
"noDataMessage": "No orphaned API Connections found.",
"showExportToExcel": true,
"queryType": 1,
"resourceType": "microsoft.resourcegraph/resources",
Expand Down Expand Up @@ -10105,7 +10105,7 @@
"query": "resources\r\n| where type == 'microsoft.web/certificates'\r\n| extend expiresOn = todatetime(properties.expirationDate)\r\n| where expiresOn <= now()\r\n| extend Details = pack_all()\r\n| project Resource=id, resourceGroup, location, subscriptionId, tags, Details",
"size": 3,
"title": "Orphaned Certificates",
"noDataMessage": "No oprhaned Certificates found.",
"noDataMessage": "No orphaned Certificates found.",
"showExportToExcel": true,
"queryType": 1,
"resourceType": "microsoft.resourcegraph/resources",
Expand Down Expand Up @@ -10257,4 +10257,4 @@
"Azure Monitor"
],
"$schema": "https://github.com/Microsoft/Application-Insights-Workbooks/blob/master/schema/workbook.json"
}
}

0 comments on commit 9312bfb

Please sign in to comment.