Hello I just recently started using terraform and Im having an issue where im trying to connect to my VM with the public ip but the public ip does not automatically populate in my state file. I have attached my terraform project on GitHub I’ve added depends on to my resource but it still doesn’t wait for the public ip. https://github.com/Ayaan7345/Azure_SEIM_Lab
c
Clemens Jütte
06/10/2024, 6:35 AM
The NIC doesn’t depend on the IP - that might solve your problem. The VM can be created without an attached NIC, so waiting for the IP there will not guarantee the order you want to have.