The Exchange Management Shell includes several cmdlets that allow you to configure the network connections used by servers in a DAG. After you have created DAG networks, or after they've been added automatically by DAG network discovery, you can view the DAG networks and their settings, modify the replication configuration, or remove them completely. This recipe provides multiple examples of how you can perform all of these tasks from the shell.
To view the configuration settings of your existing DAG networks, use the Get-DatabaseAvailabilityGroupNetwork
cmdlet:
The output of the preceding cmdlet shows that there are currently two DAG networks in an organization with a single DAG. The identity of the network, the replication state, and the associated subnets are provided.