Pause when uninstalling more than 1 VRA

Initiate a pause when uninstalling more than one vra. Without this pause, the uninstall process would only be successful for 1 VRA.
This commit is contained in:
Wes Carroll
2019-02-22 12:02:57 -05:00
parent 8edfdf1af9
commit 80385d5475
@@ -15,6 +15,9 @@ function Uninstall-ZertoVra {
$vraIdentifier = get-zertovra -vraName $vraName | Select-Object vraIdentifier -ExpandProperty vraIdentifier
$uri = "{0}/{1}" -f $baseUri, $vraIdentifier.toString()
Invoke-ZertoRestRequest -uri $uri -method "DELETE"
if ($hostName.Count -gt 1) {
Start-Sleep 1
}
}
}