Connect to virtual machine over ssh by autodiscover its IP (guest agent)


Is there any way I can tell terraform to connect to a virtual machine over ssh (for instance through data external) without specifying its IP explicitly, and instead letting terraform discover it automatically through qemu guest agent (proxmox) and vmware tools (vsphere), just like packer does?