@sappu solanki Welcome to Microsoft Q&A Forum and thank you for your interest in Azure Database for PostgreSQL server.
The Azure system requires five connections to monitor Azure Database for PostgreSQL server.
These are required for checking availability, storage, backups etc.
So, the idle connections you are seeing could be the ones from Azure itself. These connections should not be killed.
Regarding failed connections, please check if the applications or users connecting to the database are using the right credentials.
Also, there are limits on the maximum number of connections by Pricing tier.
If you are using Basic tier for instance, the maximum number of user connections allowed is 50.
So, any connections above this limit will result in connection failures.
Please let us know if you have further questions.
----------
If an answer is helpful, please "Accept answer" or "Up-Vote" for the same which might be beneficial to other community members reading this thread.