DEV Community

Cover image for Creating an HTTP Request Trigger in Azure Logic Apps
Emily Freeman for Microsoft Azure

Posted on

Creating an HTTP Request Trigger in Azure Logic Apps

Thank you to Michael Crump for creating this content!

Don't have Azure? Grab a free subscription.

Logic Apps are a service in Azure that allow you to connect various SaaS services within Azure and beyond to automate tasks. Any business process or workflow can be designed and executed.

Check out Cecil Phillip's and Michael Crump's video tutorial on setting up a logic app.

Setting up a Logic App

Go to the Azure Portal and create a new Logic App.

logic app

After the resource is ready, we’re are going to need to trigger an action when an HTTP request comes in.

Thankfully, this is one of the Common Triggers and we can select it to begin.


The URL isn’t generated until we provide the parameters.

http request

Go ahead and press Edit and paste in a JSON schema the request should expect. Here's an example.

  "$schema": "", 
  "definitions": {}, 
  "id": "", 
  "properties": {
    "csv": {
      "id": "/properties/csv", 
      "type": "string"
    "filename": {
      "id": "/properties/filename", 
      "type": "string"
    "gpx": {
      "id": "/properties/gpx", 
      "type": "string"
    "kml": {
      "id": "/properties/kml", 
      "type": "string"
  "type": "object"

You can use the Use sample payload to generate schema option, but I prefer the additional metadata that JSON Schema can provide.

Upload Files

We've set up an Azure Logic App to receive an HTTP Request which included a JSON payload.

Now let's integrate with OneDrive to automatically upload files.


Typically, you’ll add an Action or Condition to trigger once the HTTP request is complete.

We’ll select an Action as we want it to run every time. A Condition would use If...then logic after the HTTP request comes in.

Select Action and search for upload file to onedrive and you’ll see the following is available to use.


You’ll have to sign in to your OneDrive account.

Now you can pull the fields that we captured and use them as dynamic content.

For example, a GPX file contains a full URL, so we can just use that dynamic field. For the destination URL, we’ll construct where we want it to go in our OneDrive account.


This is just one idea You can integrate with dozens of everyday tools with [Azure Logic Apps].

Ready to set up your Logic App? Check out our stellar documentation.

We'll be posting articles every day in April, so stay tuned! Or jump ahead and check out more tips and tricks now.

Top comments (0)