Commit 660fb65
sp_Blitz: skip more Azure-incompatible checks per PR review
Copilot review on BrentOzarULTD#3951 flagged four additional CheckIDs that reference
msdb or sys.master_files and will throw on Azure SQL Database. Adding
them to the Azure SQL DB skip block:
- CheckID 25 (TempDB on C Drive) - reads sys.master_files
- CheckID 26 (User Databases on C Drive) - reads sys.master_files
- CheckID 36 (Slow Storage Reads) - joins sys.dm_io_virtual_file_stats
with sys.master_files
- CheckID 90 (Database Corruption Detected) - reads msdb.dbo.suspect_pages
and master.sys.databases; the outer EXISTS guard already breaks because
it queries msdb.sys.all_objects
- CheckID 93 (Backup to Same Drive as Data) - joins msdb.dbo.backupset
and msdb.dbo.backupmediafamily with sys.master_files
Also broadened the @IsAzureSQLDB declaration comment to mention both
uses (skip block guard and email / linked-server output guards), since
it is no longer only used for output path guarding after the previous
commit switched the skip block to use the variable.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 29adb9d commit 660fb65
1 file changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
| 193 | + | |
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| |||
930 | 930 | | |
931 | 931 | | |
932 | 932 | | |
933 | | - | |
| 933 | + | |
934 | 934 | | |
935 | 935 | | |
936 | 936 | | |
937 | 937 | | |
938 | 938 | | |
| 939 | + | |
| 940 | + | |
939 | 941 | | |
940 | 942 | | |
941 | 943 | | |
| |||
966 | 968 | | |
967 | 969 | | |
968 | 970 | | |
969 | | - | |
| 971 | + | |
970 | 972 | | |
971 | 973 | | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
972 | 977 | | |
973 | 978 | | |
974 | 979 | | |
| |||
0 commit comments