"Could not establish trust relationship for the SSL/TLS secure channel" when calling Api Management from Azure Logic App

azure-api-management, azure-logic-apps

Solution

I was in contact with Microsoft (Azure support) on this and learned the following. Quote:

I further talked to the product team and actually there is a limitation in the API Management action. The current API Management action in logic app cannot handle custom domain. The team will look into supporting it in future.

For now, the suggested workaround is to use Http+Swagger action instead. Then you will be able to update the URI by yourself.

Just to make this clear: this applies if you try to call Api Management actions from Azure Logic Apps. If you have for example a web app and want to call an APIM action, then custom domains will work just fine.

Problem

I have an Azure Logic App where I have added, through the Designer, an action to call an Azure Api Management (APIM) operation. As said, I used the Logic App Designer which guided me through the process of selecting the APIM operation. Now, when the Logic App is executed, I get the following error when trying to call the APIM operation: BadRequest. Http request failed with status code 'TrustFailure' and status message: 'The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.'. Does anybody have an idea why this is happening? I am a bit stuck here...

Original source