简体   繁体   English

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

[英]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.

相关问题 Windows Azure网站中的自定义性能计数器 - Custom Performance Counters in Windows Azure Web Sites Windows Azure Pack 网站的替代品? - Alternatives to Windows Azure Pack Web Sites? 我正在尝试使用 Windows 身份验证从我的 Azure 函数连接 SQL Server(本地) - I am trying to connect SQL Server(on-premises) from my Azure Function with windows authentication 从非域计算机连接到域SQL Server 2005 - Connect to domain SQL Server 2005 from non-domain machine 使用C#代码或.net以编程方式在Windows Azure中创建虚拟机 - Create a virtual machine in windows azure programmatically with C# code or .net AWS:从虚拟机连接到SQL数据库 - AWS: Connecting from virtual machine to SQL database 无法加载网站-无法通过Azure Web服务器连接到Azure SQL DB。 仅本地连接 - Failure to load website - Cannot connect to Azure SQL DB through Azure web server. Only connects locally Azure DNS服务器保持连接到虚拟机端点 - Azure DNS server keep connecting to virtual machine endpoints Azure将vm agent添加到通过特殊VHD创建的虚拟机 - Azure add vm agent to Virtual machine created from special VHD Azure网站 - 计划任务 - Azure Web Sites - scheduled tasks
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM