[英]Connect internally to a Virtual Machine with SQL Server from Web Sites using Windows Azure
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. 我使用Windows Azure网站来托管我的Web应用程序,并且还有一个带有SQL Server的Windows Azure虚拟机。 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.
我想从Windows Azure网站内部连接到我的虚拟机,但使用我提供的虚拟机内部IP地址不起作用。 Is it possible to connect internally from Web Sites to a Virtual Machine?
是否可以从Web站点内部连接到虚拟机? If so, how can I accomplish this?
如果是这样,我怎么能做到这一点? Thanks.
谢谢。
Nope! 不!
The only way to internally connect that different resources is via Azure Virtual Network. 内部连接不同资源的唯一方法是通过Azure虚拟网络。 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".
因此,如果您将部署移至Cloud Service(Web角色),您将能够通过内部IP地址将其连接到VM,而不必“退出”。
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. 我相信(以及我的推测)我们最终可能会在未来的网站中看到能够连接到Azure虚拟网络,至少对于预留实例。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.