How to integrate APIM with IIS hosted on a VM within same VNet to register SOAP services into APIM?

Gourav Sood 1 Reputation point
2020-09-10T20:00:29.43+00:00

Hi Team

I’ve hosted an internal APIM instance within a subnet of a VNET and integrated it with Application Gateway in same VNET but different subnet.
Later Configured custom domains on APIM,
then Configured Application Gateway for all the necessary configuration to expose Dev portal and APIM gateway securely over internet with end to end SSL.

It works Perfectly. I'm able to consume APIs and Azure Functions and any resources within the cloud successfully including SOAP services hosted using azure websites.

I later setup a VM into another subnet of same VNET and hosted a sample WCF application , registered it with a pvt dns zone , dns resolution is successful and browsable from within the same VNet as well other peered VNET making it available within all my VNETs

All the four artefacts
i.e Application Gateway,
APIM internal Instance
Private DNS Zone
Virtual Machines.

are part of same VNET but different Subnets.

When I exported the singleWSDL file and uploaded it to the APIM instance while adding an API , it populated all SOAP functions successfully even the back-end URL was correctly imported to be the Private DNS Url.

Then explicitly I configured the gateway cred as client cert which I previously uploaded to APIM as pfx.
Despite all that configuration APIM is unable to make the request to the IIS service via private dns. Below is the error.

forward-request (73.031 ms)
{
"messages": [
"Error occured while calling backend service.",
"The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.",
"The remote certificate is invalid according to the validation procedure."
]
}
and then I tried everything without private DNS and security i.e over HTTP and still faced issue.

{
"source": "forward-request",
"timestamp": "2020-09-10T19:04:42.7543916Z",
"elapsed": "00:00:21.0158745",
"data": {
"messages": [
"Unable to connect to the remote server",
"Error occured while calling backend service.",
"A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 10.1.0.69:5656"
]
}
}

Can you please suggest me how so to make it work?

Regards

Gaurav

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,805 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Chris Deome 6 Reputation points
    2020-12-21T16:30:14.577+00:00

    Apologies for the question here, but do you have an update on this issue? I am running into the same issue trying to push the API traffic from the appgateway to the APIM then to the IIS API. All trying to accomplish Mutual Cert Auth.

    Thank you!!

    Chris

    0 comments No comments