From 8259df34d1c3aa40f7dc23d253a71400fb7d5dd1 Mon Sep 17 00:00:00 2001 From: jdmsoss <174804059+jdmsoss@users.noreply.github.com> Date: Wed, 23 Oct 2024 05:12:13 +0200 Subject: [PATCH] fix: exclude master DB from failover group recommendation (#469) --- .../Sql/servers/kql/943c168a-2ec2-a94c-8015-85732a1b4859.kql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-resources/Sql/servers/kql/943c168a-2ec2-a94c-8015-85732a1b4859.kql b/azure-resources/Sql/servers/kql/943c168a-2ec2-a94c-8015-85732a1b4859.kql index 0b5c51e89..638da738e 100644 --- a/azure-resources/Sql/servers/kql/943c168a-2ec2-a94c-8015-85732a1b4859.kql +++ b/azure-resources/Sql/servers/kql/943c168a-2ec2-a94c-8015-85732a1b4859.kql @@ -1,6 +1,6 @@ // Azure Resource Graph Query // Provides a list of SQL databases that are not configured to use a failover-group. resources -| where type =~'microsoft.sql/servers/databases' +| where type =~'microsoft.sql/servers/databases' and name !~ "master" | where isnull(properties['failoverGroupId']) | project recommendationId = "943c168a-2ec2-a94c-8015-85732a1b4859", name, id, tags, param1= strcat("databaseId=", properties['databaseId'])