What causes long recovery on Azure Database for PostgreSQL Recent checkpoints are critical for fast server recovery. Once a restart happens, either it was a new instance (failover to healthy instance) or same instance (in-place restart) will connect to disk that has all logs, all WAL logs after the last successful checkpoint need to be applied to the data pages before the server starts to accept connections again.
Another reason would be long running transactions are queries that are running for too long which impact database performance and can potentially cause issues during restarts.
I hope your server is back online now. If not, you'll need to open a support case to get it back online.
Thank You!