Availability group '%1!s!' failed to process %2!s!-%3!s! command. The local availability replica is not in a state that could ...

Availability group '%1!s!' failed to process %2!s!-%3!s! command.  The local availability replica is not in a state that could process the command.  Verify that the availability group is online and that the local availability replica is the primary replica, then retry the command.