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.

  1. Direct communication using DNS.
  2. Keep both the VMs in Cloud service and use host name to communicate.
  3. Form a virtual network and use the persistent virtual machine IP address to connect to.

Thanks In Advance

有帮助吗?

解决方案

you don't want to use the Clud Service host name to communicate between the VMs.

If you want to use DNS, you have to provide DNS - you don't need that too.

For that particular scenario, I would recommend something even simpler:

  • Put the VMs in the same Cloud service
  • Do not go for any Virtual Network or DNS Solutions
  • Use VM Name to connect between the machines.

when the VMs are deployed in the same Cloud Service and not in Virtual Network, Windows Azure provides automatic name discovery. The simplest approach is usually the best.

For more information on name resolution scenarios in Windows Azure, read this paper.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top