Hi!
I try this line to disable Ft on this VM, but dont works
How can do it?
Write-Host "Disable FT for this VM"
Get-VM test_FT | Select -First 1 | Get-View | % { $_.TurnOffFaultToleranceForVM() }
The error:
At C:\Users\Axel\AppData\Local\Temp\c9a4f070-d39c-4b4b-a67f-f162010c1572.ps1:27 char:55
+ ... | Select -First 1 | Get-View | % { $_.TurnOffFaultToleranceForVM() }
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : VimException
Thanks!
You have to make sure to call that method from the primary VM.
Something like this for example:
Get-VM test_FT | where{$_.ExtensionData.Config.FtInfo.Role -eq 1} | % {
$_.ExtensionData.TurnOffFaultToleranceForVM()
}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
You have to make sure to call that method from the primary VM.
Something like this for example:
Get-VM test_FT | where{$_.ExtensionData.Config.FtInfo.Role -eq 1} | % {
$_.ExtensionData.TurnOffFaultToleranceForVM()
}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thanks! Works perfectly!