One or more databases in availability group '%1!s!' are not synchronized. On a synchronous-commit availability replica, ALTER ...

One or more databases in availability group '%1!s!' are not synchronized. On a synchronous-commit availability replica, ALTER AVAILABILITY GROUP  OFFLINE is not allowed when one or more databases are not synchronized. Wait for all databases to reach the SYNCHRONIZED state, and retry the command.