How to fix web activity error "Error calling the endpoint" for Azure API management service from Azure data factory
I have an azure data factory in VNet and API management service with virtual network type "Internal". I am trying to invoke one of the Api endpoints from data factory using web activity "POST" method but getting the below mentioned error from ADF. The same endpoint is working from postman but not from ADF. In the web activity, I'm using the same type of authentication and headers which were used in postman. Also, the runtime we are using in the web activity has interactive authoring enabled.
Error message from ADF web activity: "Error calling the endpoint 'https://apim-test-dev.azure-api.net'. Response status code: 'NA - Unknown'. More details: Exception message: 'NA - Unknown [ClientSideException] The remote name could not be resolved: 'apim-test-dev.azure-api.net''. Request didn't reach the server from the client. This could happen because of an underlying issue such as network connectivity, a DNS failure, a server certificate validation or a timeout."
Any pointers to help this issue would be greatly appreciated.