sys.fn_hadr_distributed_ag_replica
availability-group #availability-group#function
Description
2016 (13.x) and later versions Used to map a replica in a distributed availability group to the local availability group. Is the identifier of the distributed availability group. Is the identifier of a replica in the distributed availability group. Returns the following information. Unique identifier (GUID) of the local availability group.
Syntax
sys.fn_hadr_distributed_ag_replica( lag_Id, replica_id )