AS2 Connection - Integration Account - By not exposing LogicAppUrl to external

balaram nanduri 0 Reputation points
2025-04-15T09:21:40.9433333+00:00

Hi everyone,

I'm currently working on setting up an AS2 connection between external clients and our Azure-hosted integration environment. We want to support both inbound and outbound AS2 messaging using certificate-based authentication, dynamic routing based on AS2 headers, and MDN handling (both synchronous and asynchronous). Since Logic Apps are involved in processing the messages, we are considering placing a secure proxy in front of the Logic App to avoid exposing its URL directly to external clients.

I’d like to ask how others are handling this in their organizations. Specifically:

If you're using AS2 with Azure, what kind of proxy or gateway are you using in front of Logic Apps for secure AS2 communication?

Are you using Azure API Management (APIM) or Azure Application Gateway, and what are the pros/cons you’ve encountered?

Does your setup support mutual TLS and proper certificate validation for AS2 partners?

What would be the recommended approach for my scenario — APIM or Gateway — considering the need for cert-based authentication, AS2 header inspection, MDN handling, and Integration Account support?

Any insights or experience you can share would be greatly appreciated!

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,470 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Ranashekar Guda 1,275 Reputation points Microsoft External Staff
    2025-04-15T12:10:00.38+00:00

    Hello @balaram nanduri,

    To securely connect external AS2 partners with your Azure Integration Account and Logic Apps, using Azure API Management (APIM) is highly recommended. APIM acts as a secure gateway, preventing direct exposure of your Logic App URLs. It allows you to enforce mutual TLS for certificate-based authentication, crucial for AS2. Its policy engine enables dynamic routing based on AS2 headers, directing messages to the correct Logic Apps.

    Additionally, APIM effectively handles both synchronous and asynchronous MDN responses, ensuring reliable message delivery. By implementing APIM, you gain centralized control over security, routing, and monitoring, making it the ideal solution for complex AS2 integrations while maintaining strong security posture.

    For further clarification, please refer to the following documentations: Document1, Document2

    I hope this helps resolve your issue. Feel free to reach out if you have further concerns.


  2. LeelaRajeshSayana-MSFT 17,676 Reputation points
    2025-04-29T13:51:13.7433333+00:00

    @balaram nanduri Thank you for sharing the additional information on your use case and providing pointers on what you are trying to achieve. I could not find an end-to-end flow covering your use case. Here are couple of articles that will guide you on what you are planning to achieve

    The two articles explain how certificates can be incorporated into APIM and how to use APIM to forward calls it receives and invoke Logic App flows without exposing the Logic App URLs directly to end customers.

    Hope this helps. Please let us know if you still need any assistance or further clarification.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.