Hi, @Mani Mahesh Sivakumar Thanks for posting your question in the Microsoft Q&A forum. As I understand correctly you want to know the steps on how to Alert while HA failover happens on the Azure Postgres Flexible server. Unfortunately, there is no explicit alert yet, for now, the only option is to have a workaround - check what is exactly happening and create an alert on it.
Hope this information helps
Please don't forget to click on or upvote button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer.