Questions tagged [failover-group]

2 questions
1
vote
1 answer

Azure SQL failover Group testing

If I set up a failover Group for an Azure SQL Database (not a Managed Instance or SQL Server on VM), is it possible to do a test failover, so there is a copy of the Azure SQL Database available for testing, whilst a copy of the production SQL…
AlexP012
  • 53
  • 3
1
vote
1 answer

execute job only on primary replica ( R/W) of Azure SQL MI failover groups

I am trying to setup SQL agent job that will only execute if it is primary replica of Azure SQL MI of failover groups. I am trying to get primary replica using sys.dm_hadr_database_replica_states where is_primary_replica =1 but when I run it on SQL…