|
1 | 1 | <#
|
2 | 2 | .SYNOPSIS
|
3 | 3 | 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, |
5 | 5 | creates the configuration json and gathers all the required data and runs the executable
|
6 | 6 |
|
7 | 7 | .DESCRIPTION
|
8 | 8 | Downloads the Failover Detection Utility from the tiger teams GitHub Repo,
|
9 | 9 | 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 |
11 | 11 | provided and gathers all of the required data and runs the utility
|
12 | 12 |
|
13 | 13 | .PARAMETER InstallationFolder
|
@@ -70,7 +70,7 @@ $invokeSqlFailOverDetectionSplat = @{
|
70 | 70 | InstallationFolder = $InstallationFolder
|
71 | 71 | AlreadyDownloaded = $true
|
72 | 72 | }
|
73 |
| -Invoke-SqlFailOverDetection @invokeSqlFailOverDetectionSplat |
| 73 | +Invoke-SqlFailOverDetection @invokeSqlFailOverDetectionSplat |
74 | 74 |
|
75 | 75 | Does not download any files
|
76 | 76 | Connects to SQL0 and finds the all of the replicas in the Availability Group and gets the
|
@@ -202,6 +202,12 @@ Analyze = $Analyze
|
202 | 202 | Show = $Show"
|
203 | 203 | Write-Verbose $msg
|
204 | 204 |
|
| 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 | + |
205 | 211 | #Region Some Folder bits
|
206 | 212 | $msg = "Ensuring folders have \ at the end because it pulls my beard so often"
|
207 | 213 | Write-Verbose $msg
|
|
0 commit comments