I'm trying to query vCD for the External IP address for a specific VM within a vApp. I can get the VM and some other information but am having a hard time getting the External IP since it's in a fenced configuration. I also looked at pulling the IP Allocation list and then parsing that but I can't seem to get very far that way either.
Any help would be appreciated.
I finally found what I needed.
$VM = get-civm "VM Name"
Yip same as doing this:
$VM = get-civm "VM Name"
$vm.ExtensionData.GetNetworkConnectionSection().NetworkConnection[0].ExternalIpAddress
or
(get-civm "VM Name").ExtensionData.GetNetworkConnectionSection().NetworkConnection[0].ExternalIpAddress
That's much cleaner and gives a better output for what I'm doing with the IP
Thank you!!!
Cool no problem