Connect internally to a Virtual Machine with SQL Server from Web Sites using Windows Azure

夙愿已清 提交于 2019-12-11 11:09:48

问题


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.


回答1:


Nope!

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".

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.



来源:https://stackoverflow.com/questions/17845966/connect-internally-to-a-virtual-machine-with-sql-server-from-web-sites-using-win

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!