SQL

Problem with Listener Name in Azure Availability Group

I was recently working with a client to migrate a standalone instance of SQL Server on an Azure VM to a new High Availability solution with two new instances, again on Azure VMs, with databases hosted in an Availability Group.

Once everything had been set up, with the AG created and databases synchronising, it was time to turn to the Listener Name. The procedure for creating this for an AG in Azure differs from the standard approach in that an Azure Load Balancer is required instead of it just being created as a Virtual Network Name in AD and an IP address in DNS. Joshua Feirman has a good article here in which he gives an overview of what a Load Balancer is and does. In essence though ‘due to limitations in how the Azure platform handles address routing, clients cannot use the virtual IP address to connect to the replica …. at least not without some involvement from a load balancer resource’.

Once the Load Balancer and its associated technologies – Front-end IP address, Back-end pool, Probes and Load balancing rules – had been created an odd problem manifested itself in that, when re-connecting to the Listener after a failover, it seemed that it was still the previous primary (now secondary) whose databases were displayed and these were obviously inaccessible when non-readable. After much tearing out of hair (of which I have precious little) I traced the problem to the Floating IP property in the Load Balancing rules, which should be enabled but wasn’t in this case (my bad). I still don’t quite understand why this was having the effect it was – still looking into that – but I did come across this article which states, in relation to the Load Balancing rules, that ‘If we choose any value other than what [was stipulated], you would get connectivity issue [sic] from passive/other nodes.’. Which was what I was seeing.

Gordon Feeney

Recent Posts

Standards compliance verified with Exor Certified status achievement

We’ve achieved Exor Certified accreditation again. This shows Pro DBA’s commitment to standards compliance and…

12 years ago

Pro DBA cuts SQL Server support service prices to mark launch of new site

Pro DBA today announced a special 10% discount on all list prices for SQL Server…

12 years ago

Pro DBA fund raising

Pro DBA are raising money for Greenwich Mencap. Congratulations to Jonathan Moss, Harpreet Chawla and…

12 years ago

Discounted Oracle and SQL Server support for 2e2 customers

Pro DBA today announced three special offers for 2e2 customers on its critically acclaimed Oracle…

11 years ago

Oracle database support special rates for IFS customers

Oracle database experts Pro DBA today announced that they will be offering discounted rates on…

11 years ago

Oracle Linux Specialisation achieved by Pro DBA

Pro DBA are proud to announce that they have achieved Oracle Specialized Partner status for…

11 years ago