内部连接到虚拟机从Web站点使用Windows Azure中的SQL Server

问题描述:

我使用Windows Azure网站主办我的web应用程序,也有Windows Azure中的虚拟机上的SQL Server。我想从Windows Azure网站内部连接到我的虚拟机,但用我的虚拟机提供的内部IP地址,无法正常工作。是否有可能从网站内部连接到虚拟机?如果是这样,我怎么能做到这一点?谢谢你。

I am using Windows Azure Web Sites to host my web application and also have a Windows Azure Virtual Machine with SQL Server on it. I would like to connect internally from Windows Azure Web Sites to my Virtual Machine, but using the supplied internal IP address of my Virtual Machine is not working. Is it possible to connect internally from Web Sites to a Virtual Machine? If so, how can I accomplish this? Thanks.

都能跟得上!

在内部的唯一方式连接,不同的资源可通过Azure的虚拟网络。而从今天开始,网站不支持虚拟网络。然而,云服务都支持虚拟网络,因为这样做虚拟机。所以,如果你移动你的部署云服务(Web角色),你就可以把它通过内部IP地址连接到虚拟机并且从来没有走出去。

The only way to internally connect that different resources is via Azure Virtual Network. And as of today, Web Sites does not support Virtual Network. Cloud Services however do support Virtual Network, as do Virtual Machines. So if you move your deployment to Cloud Service (Web Role) you will be able to connect it to the VM via internal IP Address and never have to go "out".

我相信(我的猜测),我们最终可能会在未来的Web站点能够连接到Azure的虚拟网络,至少预留实例看看。

My believe (and my speculation) that we might eventually see in the future Web Sites being able to connect to Azure Virtual Network, at least for the Reserved Instances.