Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Oss resource graph queries #309

Merged
merged 5 commits into from
Mar 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/content/services/database/db-for-mysql/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ The presented resiliency recommendations in this guidance include DB for MySQL a
{{< table style="table-striped" >}}
| Recommendation | Category | Impact | State | ARG Query Available |
|:--------------------------------------------------|:-----------------------------------------------------------------------:|:---------------:|:----------------:|:-------------------:|
| [MYSQL-1 - Enable HA with zone redundancy](#mysql-1---enable-ha-with-zone-redundancy) | Availability | High | Preview | No |
| [MYSQL-2 - Enable custom maintenance schedule](#mysql-2---enable-custom-maintenance-schedule) | System Efficiency | High | Preview | No |
| [MYSQL-1 - Enable HA with zone redundancy](#mysql-1---enable-ha-with-zone-redundancy) | Availability | High | Preview | Yes |
| [MYSQL-2 - Enable custom maintenance schedule](#mysql-2---enable-custom-maintenance-schedule) | System Efficiency | High | Preview | Yes |
{{< /table >}}

{{< alert style="info" >}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
// under-development
// Azure Resource Graph Query
// Find Database for MySQL instances that are not zone redundant
resources
| where type == "microsoft.dbformysql/flexibleservers"
| where properties.highAvailability.mode != "ZoneRedundant"
| project recommendationId = "psql-1", name, id, tags, param1 = "ZoneRedundant: False"
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
// under-development
// Azure Resource Graph Query
// Find Database for MySQL instances that do not have a custom maintenance window
resources
| where type == "microsoft.dbformysql/flexibleservers"
| where properties.maintenanceWindow.customWindow != "Enabled"
| project recommendationId = "psql-2", name, id, tags, param1 = strcat("customWindow:", properties['maintenanceWindow']['customWindow'])
2 changes: 1 addition & 1 deletion docs/content/services/database/db-for-postgresql/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The presented resiliency recommendations in this guidance include Database for P
| Recommendation | Category | Impact | State | ARG Query Available |
| :------------------------------------------------ | :---------------------------------------------------------------------: | :------: | :------: | :-----------------: |
| [PSQL-1 - Enable HA with zone redundancy](#psql-1---enable-ha-with-zone-redundancy) | Availability | High | Preview | Yes |
| [PSQL-2 - Enable custom maintenance schedule](#psql-1---enable-ha-with-zone-redundancy) | System Efficiency | High | Preview | No |
| [PSQL-2 - Enable custom maintenance schedule](#psql-1---enable-ha-with-zone-redundancy) | System Efficiency | High | Preview | Yes |
{{< /table >}}

{{< alert style="info" >}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
// under-development
// Azure Resource Graph Query
// Find Database for PostgreSQL instances that do not have a custom maintenance window
resources
| where type == "microsoft.dbforpostgresql/flexibleservers"
| where properties.maintenanceWindow.customWindow != "Enabled"
| project recommendationId = "psql-2", name, id, tags, param1 = strcat("customWindow:", properties['maintenanceWindow']['customWindow'])
Loading