SQL Flow Field Guide

ALTER AVAILABILITY GROUP

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

changes availability group (no row flow)

What changes

Input
catalog
Output or change
catalog: availability group

Syntax at a glance

ALTER AVAILABILITY GROUP group_name { SET ( <set_option_spec> ) | ADD DATABASE database_name | REMOVE DATABASE database_name | ADD REPLICA ON <add_replica_spec> | MODIFY REPLICA ON <modify_replica_spec> | REMOVE REPLICA ON <server_instance> | JOIN | JOIN AVAILABILITY GROUP ON <add_availability_group_spec> [ , ...2 ] | MODIFY AVAILABILITY GROUP ON <modify_availability_group_spec> [ , ...2 ] | GRANT CREATE ANY ...

Work example

An availability group needs a reviewed replica, listener, or failover setting change.

Check replica health, quorum, commit mode, failover policy, and the maintenance window first.

Check your work Every replica returns to the expected health state and the listener serves the primary.

Open Microsoft Learn for full syntax, permissions, and details for your version.