Skip to content

Commit 001283c

Browse files
committed
Update Invoke-vCenterRestore
update example value Signed-off-by: Brian O'Connell <brian.oconnell@broadcom.com>
1 parent 08e16c7 commit 001283c

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

VMware.CloudFoundation.InstanceRecovery.psm1

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2964,7 +2964,7 @@ Function Invoke-vCenterRestore {
29642964
The Invoke-vCenterRestore restores a vCenter appliance using the specified backup
29652965
29662966
.EXAMPLE
2967-
Invoke-vCenterRestore -vCenterFqdn "sfo-m01-vc02.sfo.rainpole.io" -vCenterAdmin "administrator@vsphere.local" -vCenterAdminPassword "VMw@re1!" "-extractedSDDCDataFile .\extracted-sddc-data.json" -workloadDomain "sfo-m01" -vCenterBackupPath "10.50.5.63/F$/Backups/vcenter-backup/sn_sfo-m01-vc01.sfo.rainpole.io/M_8.0.2.00100_20231209-074557_" -locationtype "SMB" -locationUser "Administrator" -locationPassword "VMw@re1!"
2967+
Invoke-vCenterRestore -vCenterFqdn "sfo-m01-vc02.sfo.rainpole.io" -vCenterAdmin "administrator@vsphere.local" -vCenterAdminPassword "VMw@re1!" "-extractedSDDCDataFile .\extracted-sddc-data.json" -workloadDomain "sfo-m01" -vCenterBackupPath "10.50.5.63/F$/Backups/vcenter-backup/sn_sfo-m01-vc01.sfo.rainpole.io/M_9.0.0.0_20250922-105520_" -locationtype "SMB" -locationUser "Administrator" -locationPassword "VMw@re1!"
29682968
29692969
.PARAMETER vCenterFqdn
29702970
FQDN of the temporary vCenter hosting the deployed vCenter OVA to which the backup should be restored
@@ -3817,11 +3817,7 @@ Function Remove-NonResponsiveHosts {
38173817
}
38183818
#Attempt to Force Delete the Transport Nodes
38193819
Foreach ($hostID in $hostIDs) {
3820-
If ($nsxManagerVersion -le "313") {
3821-
$uri = "https://$nsxManagerFqdn/api/v1/fabric/nodes/$($hostID)?unprepare_host=false"
3822-
} else {
38233820
$uri = "https://$nsxManagerFqdn/api/v1/transport-nodes/$($hostID)?force=true&unprepare_host=false"
3824-
}
38253821
LogMessage -type INFO -message "[$nsxManagerFqdn] Removing Transport Node associated with $(($allHostTransportNodes | Where-Object {$_.id -eq $hostID}).display_name)"
38263822
$deleteTN = Invoke-WebRequest -Method DELETE -URI $uri -ContentType application/json -headers $headers
38273823
}

0 commit comments

Comments
 (0)