How to Configure Multiple availability groups with separate SQL Listener (SQL 2016 and above) in Azure Always-on VM setup

Anshul Farkya 131 Reputation points
2022-02-18T12:11:33.013+00:00

Hi Team,

I would like to configure Multiple availability groups with separate SQL Listener for each AG (SQL 2016 and above) in Azure Always-on VM setup. My AG setup contains two nodes in one region and one node as DR node in another region.

I would like to use only SQL listener name and default port for connection using application connection string.

Please guide me for same.

SQL Server on Azure Virtual Machines
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. vipullag-MSFT 26,306 Reputation points
    2022-02-23T02:19:23.437+00:00

    @Anonymous

    Welcome to Microsoft Q&A Platform, thanks for posting your query here.

    Please consider using multi-subnet AG to setup your scenario. Refer this document once, Simplify Azure SQL Virtual Machines HA and DR configuration by adopting multi subnet approach. AG replicas on different regions are supported by this approach.

    The default port for listener will be ok, however the recommendation is to use a different port number – Looking for “WITH IP” in CREATE AVAILABILITY GROUP (Transact-SQL) - SQL Server.

    Hope this helps.
    Please 'Accept as answer' if the provided information is helpful, so that it can help others in the community looking for help on similar topics.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.