Connect Virtual Machines in Windows Azure

Our project relies on MSDTC. To use this in Windows Azure the machines must be able to find each other. Here are the two solutions Microsoft offers.

Move VM to virtual network

In this post Karl writes how to move existing virtual machines into a virtual network. A summary of the steps:

  • Create Virtual Network
  • Delete the Virtual Machine(s), but keep the attached disks
  • Delete the Cloud Service
  • Create new Virtual Machine
    • use the old disk
    • create the Cloud Service in the same wizard
    • put it in the Virtual Network

virtualnetwork
The Virtual Machines now have an IP Address in the range defined in the Virtual Network. When no DNS machine is added, use the hosts file.

Setup virtual network with VPN

Another good read on the internet. Courtenay writes about Point-to-Site VPN Walk-Through. This approach creates a Virtual Network for it’s VPN. No need to delete and recreate Virtual Machines. Very short summary:

  • Create Virtual Network
  • Add Gateway to Virtual Network
  • Configure VPN on Virtual Machines

gateway
A new network adapter (VPN) is available. Connect it to get a second IP address.

Pros/Cons

Moving to a Virtual Network involves downtime and deletion of Virtual Machines (lose VIP) but is free.
VPN costs €28 per month, but no downtime or losing the VIP.

About erictummers

Working in a DevOps team is the best thing that happened to me. I like challenges and sharing the solutions with others. On my blog I’ll mostly post about my work, but expect an occasional home project, productivity tip and tooling review.
This entry was posted in Tooling and tagged , , , , . Bookmark the permalink.

1 Response to Connect Virtual Machines in Windows Azure

  1. Pingback: Azure VM on Virtual Network | .NET Development by Eric

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.