Open dumlutimuralp opened 6 years ago
Hi @dumlutimuralp
There is no cmdlet yet for this...
but you can use $esg = Get-NsxEdge MyEdge $esg.name = "NewName" $esg | set-nsxedge (-Confirm:$true)
May be need also to update FQDN
As I know, you can set hostname while you're creating ESG. But there is no such a parameter for DLR yet. I'm using following code for DLR.
$Ldr = Get-NsxLogicalRouter -name $DLRName $Ldr.fqdn=$DLRName $Ldr | Set-NsxLogicalRouter -confirm:$false | out-null
Oups, yes need to use LogicalRouter and not Edge...
By the way, is there any way to forcesync an ESG or DLR via PowerNSX ?
For ESG : Get-NsxEdge Edge01 | Repair-NsxEdge -Operation ReSync -Confirm:$false
But there is not (yet) Repair-NsxLogicalRouter...
Could not find the cmdlet for changing the hostname of DLR. This is needed by a customer to make sure that the CLI Prompt in SSH session reflects the correct component.