Create REST Api using Azure Logic App and Cosmos DB , Secure using Azure API Management

Mohit Gupta
AzureDiary
Published in
3 min readOct 23, 2019

Create an instance of Azure COSMOS Db

Add container and define the partition key for resource

Create Logic App for initial loading of Cosmos Db

This is Recurrence based Logic app which fetch data from HTTP endpoint and save into COSMOS Db

Create Logic App for Get All

Create Logic App for Get by Id

Create Logic App for Delete Request

Create Logic App for PUT

Create API Management and define the API

Define operation at API and set back-end as Azure Resource(Logic App)

Define all operation in API Operations

Now you can take the IP address if Azure API Management and add IP address in logic APP Access control configuration. This will only allow api management to call Logic App .

--

--

Mohit Gupta
AzureDiary

Integration Developer works on Azure , DevOps , BizTalk. Contact : mohit.e.gupta@gmail.com