Please feel free to provide feedback or file bugs here.

SqlServer module Join-SqlAvailabilityGroup connection pooling error

When I call Join- SqlAvailabilityGroup commandlet and active database for pooled connections is not master, I get an error message. There are could be number of different reasons why active database for the PowerShell session would change.