@Mark Thanks for reaching out. As per the error, the APIM is not able to resolve your azure function app. Can you please verify if the custom DNS is correctly setup and you can refer to this document for more details. Outbound access on port 53 is required for communication with DNS servers. If a custom DNS server exists on the other end of a VPN gateway, the DNS server must be reachable from the subnet hosting API Management. I will also suggest you to review this document for the setup part.
External api management service can't resolve Azure function service name
Mark
11
Reputation points
Currently I have a function created with vnet integration and a HTTP trigger. I'm attempting to use API Management to expose my serverless function that is behind a secure VNET.
After linking my function in the api management portal, whenever I try and test it with a simple GET request I get 500 errors with the cause being:
"messages": [
"Error occured while calling backend service.",
"The remote name could not be resolved: 'my-redacted-test-name.azurewebsites.net'"
]
Things I've tried:
- I've double checked that the correct security group rules have been opened for api management to work
- I've ensured that both my api management (external) is in the same vnet as my Serverless function
- Ive check that my private dns zone is linked with my vnet.
- When creating my serverless function I enabled inbound (which created a private endpoint) and outbound access
If anyone knows what could potentially be causing this issue, I would greatly appreciate the help