Configure secondary replica on Alwayson Availability Group

fernando satonni 1 Reputation point
2020-09-06T13:37:41.373+00:00

Hi,

I am configuring Always On and I would like to know if it is possible to configure the secondary replica to remain in Recovery, without read access (Like Database mirroring)?

I already made some settings but I couldn't.

22720-configure-alwayson.jpg

Could someone help me?

thank you.

SQL Server on Azure Virtual Machines
{count} votes

1 answer

Sort by: Most helpful
  1. Kevin Farlee 6 Reputation points Microsoft Employee
    2020-09-08T17:52:11.377+00:00

    If your goal is to prevent read-only connections from successfully connecting to a secondary replica in an Always On Availability Group, that is a simple configuration:
    https://learn.microsoft.com/en-us/sql/database-engine/availability-groups/windows/configure-read-only-access-on-an-availability-replica-sql-server?view=sql-server-ver15
    This will allow or deny incoming connections which are read-only when the replica is in secondary mode. If the replica is in Primary role, all connections are allowed.

    If you have a need to keep the replica in a specific "Recovery" state, you do not have that level of control. An Availability Group Secondary is in a state of continual recovery, constantly applying update log records received from the Primary.

    1 person found this answer helpful.