Skip to content

Commit a2dc391

Browse files
requires failvoer module
1 parent b6e7b13 commit a2dc391

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Invoke-SqlFailOverDetection.ps1

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<#
22
.SYNOPSIS
33
Downloads the Failover Detection Utility from the Tiger Team GitHub repo
4-
https://github.com/Microsoft/tigertoolbox/tree/master/Always-On/FailoverDetection,
4+
https://github.com/Microsoft/tigertoolbox/tree/master/Always-On/FailoverDetection,
55
creates the configuration json and gathers all the required data and runs the executable
66
77
.DESCRIPTION
88
Downloads the Failover Detection Utility from the tiger teams GitHub Repo,
99
https://github.com/Microsoft/tigertoolbox/tree/master/Always-On/FailoverDetection
10-
creates the configuration json dynamically depending on the SQL Instance
10+
creates the configuration json dynamically depending on the SQL Instance
1111
provided and gathers all of the required data and runs the utility
1212
1313
.PARAMETER InstallationFolder
@@ -70,7 +70,7 @@ $invokeSqlFailOverDetectionSplat = @{
7070
InstallationFolder = $InstallationFolder
7171
AlreadyDownloaded = $true
7272
}
73-
Invoke-SqlFailOverDetection @invokeSqlFailOverDetectionSplat
73+
Invoke-SqlFailOverDetection @invokeSqlFailOverDetectionSplat
7474
7575
Does not download any files
7676
Connects to SQL0 and finds the all of the replicas in the Availability Group and gets the
@@ -202,6 +202,12 @@ Analyze = $Analyze
202202
Show = $Show"
203203
Write-Verbose $msg
204204

205+
if(Get-Module FailOverCluster -ListAvailable){
206+
Write-Warning "You don't have the FailOverCluster module available you need this to generate the cluster logs"
207+
Write-Warning "You need to run Install-WindowsFeature -Name Failover-Clustering –IncludeManagementTools in an elevated session"
208+
Return
209+
}
210+
205211
#Region Some Folder bits
206212
$msg = "Ensuring folders have \ at the end because it pulls my beard so often"
207213
Write-Verbose $msg

0 commit comments

Comments
 (0)