We are planning to rent have two VMs (one for Web Server and another for Database server) on Azure. I would like to know what would be the best way to communicate Database server from web server.
- Direct communication using DNS.
- Keep both the VMs in Cloud service and use host name to communicate.
- Form a virtual network and use the persistent virtual machine IP address to connect to.
Thanks In Advance