How to register Logic App’s Request Trigger URL into API Management Service as a blank API

Published Sep 07 2021 01:52 AM 1,435 Views
Microsoft

To register a logic app consumption as an API in Azure API management service, we have a built in functionality to ‘Create from Azure Resource’ which directly lists all the Logic Apps which can be registered as an API.

The pre-requisite being Logic App should have a callable HTTP endpoint, that means, a request trigger.

AkashNarang_0-1630914687208.png

 

Clicking on the option, you will be able to browse and select from all the logic apps which have a Request Trigger.

Same functionality is not available for workflows in Logic App standard yet.

However, we can manually register the Request trigger URL from workflows as a blank API in APIM service.

 

We will need to divide the Request URL into two parts to put into the backend and frontend.

For example – this request URL –


https://qwertytest890.azurewebsites.net:443/api/test2/triggers/manual/invoke?api-version=2020-05-01-...>

Can be broken into two segments -

a) https://qwertytest890.azurewebsites.net:443/api

b) /test2/triggers/manual/invoke?api-version=2020-05-01-preview&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=<123abc>

Steps -
1. We need to put the first part into the backend HTTP(s) endpoint by clicking on highlighted parted as portrayed below
AkashNarang_1-1630914687214.png

 

2. Select target as HTTP(s) endpoint and click on override and provide the first part of your request URL as depicted in the screenshot.

AkashNarang_2-1630914687216.png

 

  1. Next we will add the rest of the URL into the frontend section as depicted in the screenshot below.

    AkashNarang_3-1630914687221.png

     

  2. On testing, it gives us a 200 ok response.

 

AkashNarang_4-1630914687223.png

 

  1. Similarly, you can add various workflows as different operations in the same API.

This method is useful for both Logic App Consumption and Standard Logic App Workflows.

Co-Authors
Version history
Last update:
‎Sep 07 2021 01:52 AM
Updated by: