3

Q: Has anyone managed to get MSDTC transactions working between a local machine and a database that resides on an Azure Virtual Machine?

I read this: which suggests MSDTC is not supported on 'SQL Azure' - but is SQL Azure the 'SQL Databases' option, not the 'Virtual Machines' option which may happen to have a SQL database on there? It is unclear: http://social.msdn.microsoft.com/Forums/windowsazure/en-US/894b6087-35ab-4f4f-aa19-f81ee56dc6bf/msdtc-with-the-new-virtual-machines?forum=WAVirtualMachinesforWindows

I found the following article: http://sanganakauthority.blogspot.co.uk/2014/02/definitive-steps-to-configure-msdtc-on.html - but this is related to Azure VMs on the same virtual network.

There are enough articles out there which give me hope that IT IS possible, as they seem to imply it. E.g. http://thoughtsofmarcus.blogspot.co.uk/2013/03/msdtc-error-after-cloning-virtual.html, http://www.jamescrowley.co.uk/2012/06/23/msdtc-gotchas-with-virtual-machines/

I have tried the following, from reviewing numerous articles:

Any ideas?

SOLUTION

Initial solution was to set up a Cloud Service with the Web Site on it connecting to the database on a separate Virtual Machine, both residing on the same Azure Virtual Network. You have to add the Virtual Network first before you create the Virtual Machines.

Then I was getting annoyed by the Cloud Service resetting itself, I had originally published it from Visual Studio but wanted to tweak it and those tweaks were being undone. So then I switched it to a Virtual Machine (so 2 VMs in total).

Then I was breaking my subscription credit limit, so I ended up with 2 Virtual Machines, one with Web Site, one with Database, both on separate Azure subscriptions on separate Virtual Networks, but with a Virtual Gateway between them. This is a bit convoluted but works perfectly, this guide is brilliant for that: http://blogs.technet.com/b/aviraj/archive/2014/05/16/microsoft-azure-configure-cross-subscription-vnet-to-vnet-connectivity-in-azure.aspx

Adam Marshall
  • 3,010
  • 9
  • 42
  • 80
  • Have you deployed your Azure VM with SQL Server on a Virtual Network. have you also connected the Azure Virtual Network to the local network using the Azure VPN Site-to-site VPN (or jsut for test the Point-to-Site. I would not expect MSDTC to work over the Azure Load Balancer which sits in front of **any** windows Azure deployment. – astaykov Apr 01 '14 at 12:38
  • I haven't done anything like that, it is currently just a single VM. I shall investigate. – Adam Marshall Apr 01 '14 at 12:51
  • you can even put a Single VM in s Virtual Network. The catch is, that you have to indicate that while creating the VM. You cannot add an existing machine to a VNet. I am pretty sure you will have no issues with Azure Virtual Network and Site-to-Site/ Point-to-Site VPN! – astaykov Apr 01 '14 at 13:02
  • 1
    OK, I have managed to get the desired effect with a Cloud Service with a web site, connecting to a database on a separate Virtual Machine, both residing on the same Virtual Network. Thanks :) – Adam Marshall Apr 02 '14 at 13:32

0 Answers0