Hello Shabir jan
Following our discussion, you are unable to create the private endpoint for Azure PostgreSQL flexible server with the error message, Microsoft.DBforPostgreSQL/flexibleServers failed. Error message: An unexpected error occurred while processing the request.
Upon my investigation, I verified that the Private endpoint enabling is capable for the specific server and I tried to mitigate this issue.
Kindly please try to create the private endpoint and let us know the update.
I hope this has been helpful!
Your feedback is important so please take a moment to accept answers. If you still have questions, please let us know what is needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A!
If this answers your query, do click Accept Answer and Upvote for was this answer helpful.