通过站点到站点VPN将Azure网站连接到本地数据库
我的目标是建立一个访问我们本地公司数据库中数据的蔚蓝网站.
my goal is to run an azure web site that accesses data from our local company database.
我按照网上的教程设置了一个蔚蓝的虚拟网络,并将其通过站点间VPN连接到我们的本地公司网络.在azure门户中,我可以看到该连接实际上正在工作,并且已接收和传输数据.
I followed a tutorial on the web to setup an azure virtual network and connect it via site-to-site vpn to our local company network. In the azure portal I can see that the connection is actually working and that data is received and transmitted.
我必须做些什么来使azure网站连接到数据库?在Web配置中输入连接字符串是否足够? 是要以这种方式工作,还是仅将站点间VPN设置为从公司网络访问Azure虚拟机.
What do I have to do make the azure web site connect to the database? Is it enough to enter a connection string in the web config? Is it meant to work this way, or is the site-to-site vpn only set up to access azure virtual machines from the company network.
让我知道是否应该提供有关整个连接的更多详细信息.
Let me know if I should provide more details on the connection overall.
谢谢您的帮助.
最诚挚的问候, 弗兰克.
Best regards, Frank.
Azure网站不支持Azure虚拟网络(从2013年8月22日开始); http://www.windowsazure. com/en-us/manage/services/web-sites/choose-web-app-service/
Azure Web Sites do not support the Azure Virtual Network (as of 8/22/2013); http://www.windowsazure.com/en-us/manage/services/web-sites/choose-web-app-service/
如果您想使用虚拟网络并访问本地数据库,则需要创建云服务部署.一旦完成并正确配置了防火墙,就好像您只说了一个连接字符串一样.
You will need to create a cloud service deployment instead if you would like to use Virtual Network and access the on-premises database. Once that is done and your firewall is properly configured, it is like you say just a connection string.