@Rakesh Kamboj Thanks for posting your query on Microsoft Q&A.
To send and receive AS2 messages in workflows that you create using Azure Logic Apps, you can use the AS2 (v2) connector, which provides actions that support and manage AS2 communication.
Here is the detailed documentation on how to configure AS2: https://learn.microsoft.com/en-us/azure/logic-apps/logic-apps-enterprise-integration-as2?tabs=consumption#prerequisites
On a high level,
- Sign in to the Azure Portal with your Azure account credentials.
- In the search box, enter “integration account” as your filter and select Integration Account.
- Provide the necessary information about your integration account and select Create
- Configure AS2 Communication Using Azure Logic Apps using the AS2 (v2) connector. Unlike the original AS2 connector, the AS2 (v2) connector doesn’t require a separate connection to your integration account. Instead, link your integration account to the logic app resource where you plan to use the connector.
- Add the AS2 encoding and decoding actions to your logic app workflow. You can use any trigger to start your workflow (examples in this guide use the Request trigger).
- Set up a Logic App workflow with an AS2 trigger (e.g., Request trigger).
- Configure the AS2 decoding action to process incoming AS2 messages.
- Once received, you can extract the payload (files) from the AS2 message.
- After extracting the payload, use the Azure Blob Storage connector to copy the files to your SFTP-enabled blob storage.
- Configure the connector with the necessary details: SFTP server address, credentials, container, and file path.
To try deploying a fully operational logic app and sample AS2 (v2) scenario, review the AS2 (v2) logic app template and scenario.
Hope that helps.
If you have questions, please let me know in the "comments" and we would be happy to help you. Comment is the fastest way of notifying the experts.
Please don’t forget to "Accept Answer" and hit Yes for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members for remediation for similar issues.