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.
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.
Create the first virtual machine using the steps in How to create a custom virtual machine.
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:
Complete the rest of the fields on this page and the next, then click the check mark to create the connected virtual machine.
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
How to Attach a Data Disk to a Windows Virtual Machine