Hi,
Does anybody know how to delete an external network via powercli?
Thanks in advance,
Marco
There is this old method in Re: External Networks where you could replace the CreateExternalNet (and adapt the required parameters).
But nowadays it seems much easier with the REST API method DELETE /admin/extension/externalnet/{id}
which you should be able to call with the Invoke-RestMethod cmdlet.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
What should be exactly changed, do you know? I would like to delete the external NW with powercli.
I'm afraid I don't have a test environment for that handy at the moment.
But with Get-ExternalNetwork you should be able to obtain the info on the external network that you need to make the REST API call I mentioned earlier.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference