You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$detachTNP=Invoke-WebRequest-Method POST -URI $uri-ContentType application/json -headers $headers
2930
2929
2931
-
#Wait for Hosts to be Orphaned
2932
-
Foreach ($hostIDin$hostIDs) {
2933
-
LogMessage -type WAIT -message "[$nsxManagerFqdn] Waiting for Host $(($allHostTransportNodes|Where-Object {$_.id-eq$hostID}).display_name) to be `'Orphaned`'"
LogMessage -type WAIT -message "[$nsxManagerFqdn] Waiting for Host $(($allHostTransportNodes|Where-Object {$_.id-eq$hostID}).display_name) to be `'Orphaned`'"
$tnState= (Invoke-WebRequest-Method GET -URI $uri-ContentType application/json -headers $headers).content |ConvertFrom-Json
2939
+
} Until ($tnState.state-eq"orphaned")
2946
2940
}
2947
-
LogMessage -type INFO -message "[$nsxManagerFqdn] Removing Transport Node associated with $(($allHostTransportNodes|Where-Object {$_.id-eq$hostID}).display_name)"
LogMessage -type INFO -message "[$nsxManagerFqdn] Removing Transport Node associated with $(($allHostTransportNodes|Where-Object {$_.id-eq$hostID}).display_name)"
0 commit comments