Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1910fb6
commit 4b19c55
Showing
17 changed files
with
125 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,52 @@ | ||
<properties authors="kathydav" editor="tysonn" manager="timlt" /> | ||
|
||
|
||
#How to Connect Virtual Machines in a Cloud Service | ||
#How to Connect Virtual Machines with a Virtual Network or Cloud Service | ||
|
||
When you create a virtual machine, a cloud service is automatically created to contain the machine. You can create multiple virtual machines within the same cloud service so virtual machines can communicate with each other. | ||
Virtual machines must be in a cloud service, which acts as a container and provides a unique public DNS name, a public IP address, and a set of endpoints to access the virtual machine over the Internet. The cloud service can optionally be in a virtual network. | ||
|
||
> [AZURE.NOTE] When VMs are in the same cloud service, you also can load balance them and manage their availability, which both require additional steps. For details, see [Load balancing virtual machines](../../articles/load-balance-virtual-machines/) and [Manage the availability of virtual machines](../../articles/manage-availability-virtual-machines/). | ||
If a cloud service is not in a virtual network, the virtual machines in that cloud service can only communicate with other virtual machines through the use of the other virtual machines’ public DNS names, and that traffic would travel over the Internet. If a cloud service is in a virtual network, the virtual machines in that cloud service can communicate with all other virtual machines in the virtual network without sending any traffic over the Internet. | ||
|
||
First, you'll need to create a virtual machine with a new cloud service. Then you'll create additional virtual machines in the same cloud service. This 'connects' them. | ||
If you place your virtual machines in the same standalone cloud service, you can take advantage of load balancing and availability sets. For details, see [Load balancing virtual machines](../../articles/load-balance-virtual-machines/) and [Manage the availability of virtual machines](../../articles/manage-availability-virtual-machines/). However, you cannot organize the virtual machines on subnets or connect a standalone cloud service to your on-premises network. Here is an example. | ||
|
||
1. Create the first virtual machine using the steps in [How to create a custom virtual machine](../../articles/virtual-machines-create-custom/). | ||
![Virtual machines in a standalone cloud service](./media/howto-connect-vm-cloud-service/CloudServiceExample.png) | ||
|
||
If you place your virtual machines in a virtual network, you can decide how many cloud services you want to use to take advantage of load balancing and availability sets. Additionally, you can organize the virtual machines on subnets in the same way as your on-premises network and connect the virtual network to your on-premises network. Here is an example. | ||
|
||
2. Follow the same basic process to create the other virtual machines, except you'll add them to the cloud service instead of creating a cloud service. For example, if you created a cloud service named *EndpointTest*, choose that service. The follow graphic shows this: | ||
![Virtual machines in a virtual network](./media/howto-connect-vm-cloud-service/VirtualNetworkExample.png) | ||
|
||
![Add a virtual machine to an existing cloud service](./media/howto-connect-vm-cloud-service/Connect-VM-to-CS.png) | ||
Virtual networks are the recommended way to connect virtual machines in Azure. The best practice is to configure each tier of your application in a separate cloud service. This enables advanced user rights delegation through Role Based Access Control (RBAC). For more information, see [Role Based Access Control in Azure Preview Portal](../../articles//role-based-access-control-configure/). However, you may need to combine some virtual machines from different application tiers into the same cloud service to remain within the maximum of 200 cloud services per subscription. | ||
|
||
14. Complete the rest of the fields on this page and the next, then click the check mark to create the connected virtual machine. | ||
To connect virtual machines in a virtual network: | ||
|
||
#Resources | ||
1. Create the virtual network in the Azure Management Portal. For more information, see [Virtual Network Configuration Tasks](https://msdn.microsoft.com/library/azure/jj156206.aspx). | ||
2. Create the set of cloud services for your deployment in the Azure Management Portal to reflect your design for availability sets and load balancing with **New > Compute > Cloud Service > Custom Create**. | ||
3. When you create each new virtual machine, specify the correct cloud service and your virtual network. If the cloud service has been previously associated with your virtual network, its name will already be selected for you. | ||
|
||
Here is an example using the Azure Management Portal. | ||
|
||
![Selecting a cloud service for a virtual machine](./media/howto-connect-vm-cloud-service/VMConfig1.png) | ||
|
||
To connect virtual machines in a standalone cloud service: | ||
|
||
1. Create the cloud service for your deployment in the Azure Management Portal with **New > Compute > Cloud Service > Custom Create**. | ||
2. When you create the virtual machine, specify the name of cloud service created in step 1. | ||
Alternately, you can create the cloud service for your deployment when you create your first virtual machine. | ||
|
||
Here is an example using the Azure Management Portal for the existing cloud service named EndpointTest. | ||
|
||
![Add a virtual machine to an existing cloud service](./media/howto-connect-vm-cloud-service/Connect-VM-to-CS.png) | ||
|
||
##Resources | ||
[Load balancing virtual machines](../../articles/load-balance-virtual-machines/) | ||
|
||
[Manage the availability of virtual machines](../../articles/manage-availability-virtual-machines/) | ||
|
||
[Virtual Network Configuration Tasks](https://msdn.microsoft.com/library/azure/jj156206.aspx) | ||
|
||
After you create a virtual machine, it's a good idea to add a data disk so your services and workloads have a location to store data. See one of the following: | ||
|
||
[How to Attach a Data Disk to a Linux Virtual Machine](http://azure.microsoft.com/en-us/documentation/articles/virtual-machines-linux-how-to-attach-disk/) | ||
|
||
[How to Attach a Data Disk to a Windows Virtual Machine](http://azure.microsoft.com/en-us/documentation/articles/storage-windows-attach-disk/) | ||
|
||
|
Oops, something went wrong.