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:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user