-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: December general quality updates (#583)
Co-authored-by: Rodrigo Reis Santos (AZURE) <[email protected]> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
6357d0f
commit 07cf53d
Showing
25 changed files
with
1,613 additions
and
1,568 deletions.
There are no files selected for viewing
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
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
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
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
2 changes: 1 addition & 1 deletion
2
azure-resources/Network/networkWatchers/kql/22a769ed-0ecb-8b49-bafe-8f52e6373d9c.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
1 change: 0 additions & 1 deletion
1
azure-resources/Network/networkWatchers/kql/a1317a0b-402d-4604-be40-a25a004ba171.kql
This file was deleted.
Oops, something went wrong.
8 changes: 7 additions & 1 deletion
8
azure-resources/Network/networkWatchers/kql/bf0b7dbd-016d-458c-af99-70fcb03ad451.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 +1,7 @@ | ||
// under-development | ||
// Azure Resource Graph Query | ||
// This query will return all Flow Logs where Flow Analytics Configuration is disabled | ||
resources | ||
| where type =~ "microsoft.network/networkwatchers/flowlogs" | ||
| where properties.targetResourceId contains "microsoft.network/virtualNetworks" | ||
| where not(properties.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.enabled) | ||
| project recommendationId = "bf0b7dbd-016d-458c-af99-70fcb03ad451", name, id, tags, param1= "Flow Analytics Configuration is disabled",param2=strcat("Vnet Name : ", properties.targetResourceId) |
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
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
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
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
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
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
17 changes: 17 additions & 0 deletions
17
azure-resources/Network/virtualNetworks/kql/06b77be9-56a3-4d41-b362-8b295c5a283d.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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Azure Resource Graph Query | ||
// This query will return all Vnets missing Flow Logs configuration | ||
resources | ||
| where type =~ "Microsoft.Network/virtualNetworks" | ||
| extend vnetId = tolower(tostring(id)),vnetName = name,vnetTags = tags,vnetLocation = location | ||
| join kind = leftouter ( | ||
resources | ||
| where type =~ "microsoft.network/networkwatchers/flowlogs" | ||
| extend flowLogType = iff( | ||
properties.targetResourceId contains "Microsoft.Network/virtualNetworks", | ||
'Virtual network', | ||
'Virtual network' | ||
) | ||
| extend flowLogTargetVnet = tolower(properties.targetResourceId) | ||
) on $left.vnetId == $right.flowLogTargetVnet | ||
| where strlen(flowLogTargetVnet) == 0 | ||
| project recommendationId = "06b77be9-56a3-4d41-b362-8b295c5a283d",name=vnetName,id=vnetId,tags,param1 = "Missing Vnet Flow Log configuration" |
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
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
10 changes: 9 additions & 1 deletion
10
azure-resources/RecoveryServices/vaults/kql/2912472d-0198-4bdc-aa90-37f145790edc.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 +1,9 @@ | ||
// under-development | ||
// Azure Resource Graph Query | ||
// This Resource Graph query will return all Recovery services vault with Classic alerts enabled. | ||
resources | ||
| where type in~ ('microsoft.recoveryservices/vaults') | ||
| extend monitoringSettings = parse_json(properties).monitoringSettings | ||
| extend isUsingClassicAlerts = case(isnull(monitoringSettings),'Enabled',monitoringSettings.classicAlertSettings.alertsForCriticalOperations) | ||
| extend isUsingJobsAlerts = case(isnull(monitoringSettings), 'Enabled', monitoringSettings.azureMonitorAlertSettings.alertsForAllJobFailures) | ||
| where isUsingClassicAlerts == 'Enabled' | ||
| project recommendationId = "2912472d-0198-4bdc-aa90-37f145790edc", name, id, tags, param1=strcat("isUsingClassicAlerts: ", isUsingClassicAlerts), param2=strcat("isUsingJobsAlerts: ", isUsingJobsAlerts) |
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,5 +1,5 @@ | ||
--- | ||
title: Resources | ||
geekdocCollapseSection: true | ||
geekdocHidden: false | ||
geekdocHidden: true | ||
--- |
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,7 +1,7 @@ | ||
--- | ||
title: subscriptions | ||
geekdocCollapseSection: true | ||
geekdocHidden: false | ||
geekdocHidden: true | ||
--- | ||
|
||
{{< azure-resources-recommendationlist name="azure-resources-recommendationlist" >}} |
16 changes: 0 additions & 16 deletions
16
azure-resources/Resources/subscriptions/recommendations.yaml
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.