-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Added KQL for ExpressRoute FastPath Connections (#446)
Co-authored-by: Zach Trocinski <[email protected]> Co-authored-by: Eric Henry <[email protected]>
- Loading branch information
1 parent
0f37eed
commit 4b6e254
Showing
2 changed files
with
20 additions
and
3 deletions.
There are no files selected for viewing
21 changes: 19 additions & 2 deletions
21
azure-resources/Network/connections/kql/f6a14b32-a727-4ace-b5fa-7b1c6bdff402.kql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,19 @@ | ||
// under-development | ||
|
||
// Azure Resource Graph Query | ||
// Find all ExpressRoute Connections that are connected to ErGw3AZ or UltraPerformance gateway sku that don't have | ||
// FastPath enabled for both the Gateway Bypass or Private Endpoint/Link service. | ||
resources | ||
| where type == "microsoft.network/connections" | ||
| where properties.connectionType =~ 'expressroute' | ||
| extend gatewayId = tostring(properties.virtualNetworkGateway1.id) | ||
| join kind=inner ( | ||
resources | ||
| where type =~ "Microsoft.Network/virtualNetworkGateways" | ||
| where properties.sku.name in~ ("ErGw3AZ", "UltraPerformance") | ||
| extend gatewayId = tostring(id) | ||
) on gatewayId | ||
| extend erGatewayBypass = tobool(properties.expressRouteGatewayBypass) | ||
| extend privateLinkFastPath = tobool(properties.enablePrivateLinkFastPath) | ||
| where not(erGatewayBypass) or not(privateLinkFastPath) | ||
| project recommendationId = "f6a14b32-a727-4ace-b5fa-7b1c6bdff402", id, name, tags, | ||
param1 = iff(erGatewayBypass, "Enabled: Gateway Bypass", "Disabled: Gateway Bypass"), | ||
param2 = iff(privateLinkFastPath, "Enabled: PE FastPath", "Disabled: PE FastPath"), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters