Currently, using check to confirm power state is PowerOn and then get ipaddress. However, I notice that just because state = PowerOn, the vm is still being configured and cannot obtain the ipaddress. Any thoughts are greatly appreciated.
One of the most reliable ways is to check and ensure VMware Tools are running.
We do that now. It reports back that tools are ready, but the IP address is not established yet. So, automated process/cmd to get IP is executed, but continues in loop until it gets IP address. Sometimes, it can loop about a minute. I'm trying to cleanup process and trying to find a more reliable command to check if VM is 'settled' before executing command to get IP. We do a pause directly after PowerOn, but that is not always reliable (depending on OS type).
After VMware Tools being available, there's really not. You'd probably want to enter a loop that checks for IP availability after Tools are up, and then set a timeout to break the loop and continue.
Thanks!