DB read only replica

Agashe, Prateek 1 Reputation point
2021-05-10T14:05:38.587+00:00

I want to connect to the Database read replica. From the documentation I found that to connect to a read replica DB, we need to pass ApplicationIntent=ReadOnly in the conncetion string.
I am using Sequelize library to make DB connection(mssql), but I am not getting where I need to pass ApplicationIntent=ReadOnly in the connection using Sequelize (in node js).

Azure Database for MySQL
Azure Database for MySQL
An Azure managed MySQL database service for app development and deployment.
986 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Oury Ba-MSFT 20,911 Reputation points Microsoft Employee Moderator
    2021-05-11T18:36:24.693+00:00

    Hello @Agashe, Prateek Thank you for being patient while working on this.
    You can use ApplicationIntent=ReadOnly in the connection string in SSMS. You can use the Login UI in SSMS or ADS to specify server/database/login name, and then add ApplicationIntent=ReadOnly in the additional parameters box, or in the corresponding place in ADS From SSMS, you can pass the parameter under additional connection properties as below: Please refer to this documentation for more details.

    95608-image.png

    Hope that helps. Please let me know the result.
    Accept answer if that helps so it can be beneficial for other communities members with similar issues.

    Regards,
    Oury


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.