Quantcast
Channel: SQL Server High Availability and Disaster Recovery forum
Viewing all articles
Browse latest Browse all 4532

How to get information about an AG group using powershell

$
0
0
Hi Experts,

Does anyone has a powershell script which displays below information:
for a given AG listener name or AG group name, I need to get Listnener name, AG name, replicas , replica role desc ,

Can we get this information using pure powershell or do we need to execute a sql DMV to get that information ?

Thanks,
Sam

Viewing all articles
Browse latest Browse all 4532

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>