MI Link Feature implemented - How to proceed offloading read-only workloads

Vanhoefen, Guido 0 Reputation points
2025-03-12T10:23:58.3333333+00:00

Architecture:

  • SQL Server 2019 on an Azure VM with the primary Replica and connected through MI Link Feature to
  • SQL Managed Instance (General Purpose Tier) with the secondary Replica

Now I want to point 3rd Party apps to the read-only Replica on the MI.

Question:

I was not able to find an article, how to connect to the Secondary Replica in this scenario.

If I connect using "ApplicationIntent=ReadOnly" it is not connected to the secondary Replica automatically.

Do I have to create an Availability Group Listener first? Is there a KB on how to do it within this scenario?

Thanks so much for your help!

Azure SQL Database
{count} votes

1 answer

Sort by: Most helpful
  1. Vanhoefen, Guido 0 Reputation points
    2025-03-13T09:30:22.2366667+00:00

    Hi @Saraswathi Devadula and thanks for your answers.

    As we have the Managed Instance Link up and running, I supposed to start with the Step 3 (Create the Listener). When I try to create the Listener, there is an error message "Error creating WSFC-Ressource..." Code: 5090What I do not understand is, do I have to Create WSFC Configurations on top of the up and running Managed Instance Link?

    At the end, I just want a solution to let read-only users accessing the read-only replica on the Managed Instance. The only way I was able to manage an access to the read-only is to provide EntraID Users "sysadmin" rights on the Managed Instance.

    If I want to assign "dbreader"-Permissions on Database level, it fails because the Database is in "read only" mode...

    Thank you for your help!


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.