How to get information about an AG group using powershell RRS feed

  • Question

  • 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 ?

    Saturday, December 7, 2019 10:40 AM


All replies