Skip to content

Commit bb49709

Browse files
BrentOzarclaude
andcommitted
sp_Blitz: skip AG/cluster and master.sys.master_files checks on Azure SQL DB
Second round of Copilot review on BrentOzarULTD#3951 flagged three more CheckIDs that will error on Azure SQL Database: - CheckID 53 (Cluster Node) - queries sys.dm_hadr_availability_replica_ cluster_states and SERVERPROPERTY('IsHadrEnabled'/'IsClustered'), none of which are available on Azure SQL DB. - CheckID 234 (SQL Server Update May Fail) - queries master.sys.master_files via three-part name. - CheckID 268 (AG Replica Falling Behind) - queries sys.dm_hadr_database_replica_states, sys.availability_replicas, and sys.availability_groups, none of which exist on Azure SQL DB. Also broadened the section comment from "Replication / mirroring / AGs" to include "clustering" to match the expanded list. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 660fb65 commit bb49709

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

sp_Blitz.sql

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -997,8 +997,11 @@ BEGIN
997997
INSERT INTO #SkipChecks (CheckID) VALUES (260); /* SQL Server service account in Administrators */
998998
INSERT INTO #SkipChecks (CheckID) VALUES (261); /* Agent service account in Administrators */
999999

1000-
/* Replication / mirroring / AGs - not applicable on Azure SQL DB */
1000+
/* Replication / mirroring / AGs / clustering - not applicable on Azure SQL DB */
1001+
INSERT INTO #SkipChecks (CheckID) VALUES (53); /* Cluster Node - sys.dm_hadr_* DMVs unavailable */
10011002
INSERT INTO #SkipChecks (CheckID) VALUES (227); /* Database Mirroring */
1003+
INSERT INTO #SkipChecks (CheckID) VALUES (234); /* SQL Server Update May Fail - queries master.sys.master_files */
1004+
INSERT INTO #SkipChecks (CheckID) VALUES (268); /* AG Replica Falling Behind - sys.availability_* DMVs unavailable */
10021005

10031006
INSERT INTO #BlitzResults
10041007
( CheckID ,

0 commit comments

Comments
 (0)