An Azure service used to deploy Grafana dashboards for analytics and monitoring solutions.
@Ashish Dadhich - Thanks for reaching out to us.
On top of what Sander has suggested, I would like to add few points to provide more context from our engineering team.
Our Product team has just added functionality to connect privately using Managed Private Endpoints on AMG (https://learn.microsoft.com/en-us/azure/managed-grafana/how-to-connect-to-data-source-privately) to PostgreSQL, it’s being rolled out right now and should be available in a week on the portal. That said, this option with only for Postgres setup that has private endpoint enabled. But if the Postgres setup has VNet injection enabled, then the AMG MPE will not work.
If this option doesn't work for you, then unfortunately the only workaround right now is to use Deterministic IPs on your AMG instance (https://learn.microsoft.com/en-us/azure/managed-grafana/how-to-deterministic-ip) and allow these IPs to communicate from outsite your VNET on your NSG/firewall rules on the Postgres setup. The true Vnet Injection support for AMG is a long way out on our roadmap.
Hope this helps. and please feel free to reach out if you have any further questions.
Please don't forget to "Accept as Answer" and click "Yes" if the above response if helpful, so it can be beneficial to the community.