如何为2个虚拟机连接在Windows Azure中有两层架构? [英] How to connect 2 virtual machines in Windows Azure to have Two-Tier-Architecture?

查看:137
本文介绍了如何为2个虚拟机连接在Windows Azure中有两层架构?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何创建2连接的虚拟机在Windows Azure中,以能够部署两层架构的解决方案?

让我澄清的情况下,目前我使用1虚拟机中的Windows Azure在那里我有在SQL Server 2008安装DB和ASP.NET的解决方案。

Let me clarify the scenario, Currently I am using 1 virtual machines in Windows Azure where I have the SQL Server 2008 DB installed AND the ASP.NET solution.

不过,我想创建其中SQL Server 2008的数据库安装在Server1上一个非常简单的两层架构,以及ASP.NET解决方案部署在Server2上。

However, I want to create a very simple Two-Tier-Architecture where the SQL Server 2008 DB is installed on Server1, and the ASP.NET solution is deployed on Server2.

那么,如何实现这一目标?我的意思是,如何连接这两个独立的虚拟机?以及它们如何能够共同运行一个单一的解决方案?

能否请你帮我在这种情况下?

Could you please help me out in this scenario ?

谢谢!

推荐答案

似乎是一个很大的重视:虚拟网络。这很好,但是......如果你正在试图做的是创建虚拟机的结合工作与对方一把多层应用中的所有,你可以简单地在同一云服务中创建多个虚拟机(也就是说,它们都生活在 xyz.cloudapp.net )。

Seems like a lot of attention being given to Virtual Networks. That's fine, but... if all you're trying to do is create a multi-tier app with a handful of VMs working in conjunction with each other, you can simply create multiple VMs within the same cloud service (that is, they all live in xyz.cloudapp.net).

他们都会坐在一个单一的公共IP地址后面,但考虑到你的情况,你有一个Web服务器和数据库服务器:

They'll all sit behind a single public IP address, but consider your case where you have a web server and a database server:


  • 揭露端口80和443专为Web服务器(S)(你可以有多个,并在这些虚拟机
  • 负载平衡端口
  • 请不要暴露任何公开的端口数据库服务器

  • Expose ports 80 and 443 specifically for the web server(s) (you can have multiple, and load-balance the ports across these VMs
  • Don't expose any public ports for the database server

一旦部署到同一个云服务,每个虚拟机中的云服务可以直接在云服务,使用您分配给它的主机名跟任何其他虚拟机。

Once deployed to the same cloud service, each VM in the cloud service can talk directly to any other VM in the cloud service, using the host name you assigned to it.

您也可以部署Web和数据库层到不同的云服务,以及它们之间还是通信,而无需虚拟网络。如果打开,比方说,你的数据库服务器上的端口1433,现在你的Web层可以直接开到 yourdb.cloudapp.net:1433 的连接。当然,这意味着整个世界可以做同样的,但是......你能 yourdb.cloudapp.net 端口1433上应用的端点ACL(访问控制列表),只允许你的web层的云服务的公共VIP。

You can also deploy your web and database tiers to different cloud services, and still communicate between them without a Virtual Network. If you open, say, port 1433 on your database server, now your web tier can simply open a connection to yourdb.cloudapp.net:1433. Of course, this means the entire world can do the same, but... you can apply an endpoint ACL (access control list) on yourdb.cloudapp.net port 1433, and allow only the public VIP of your web tier's cloud service.

您会需要一个虚拟网络,如果你的Web服务器和数据库层在不同的云服务,你不希望你的数据层暴露的端口,你不想去通过内置的负载均衡

You'd need a Virtual Network if your web and database tiers are in separate cloud services and you don't want any exposed ports on your data tier, and you don't want to go through the built-in load balancer.

这篇关于如何为2个虚拟机连接在Windows Azure中有两层架构?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆