"FunctionError: restricted host specified" when trying to use internal private ip in atlas triggers.

Hi @Ankit_Paudel1 ,

The Triggers and their related Functions run connecting to your Cluster, not on your Cluster, thus know nothing about the VPC you may have set there.

There’s a VPC Feature for App Services (of which Triggers are a part), but only allow incoming connections. As documented in the limitations:

  • All outbound requests, such as an App Services trigger calling an external API, go over the public internet.