Skip to content

Commit

Permalink
fix: exclude master DB from failover group recommendation (#469)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdmsoss authored Oct 23, 2024
1 parent 94d1723 commit 8259df3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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'])

0 comments on commit 8259df3

Please sign in to comment.