Create a Logic App using a template

Templates provide a quick way to use different connectors within a logic app. Logic apps includes Azure Resource Manager templates for you to create a logic app that can be used to define business workflows. You can define which resources are deployed, and how to define parameters when you deploy your logic app. You can use this template for your own business scenarios, or customize it to meet your requirements.

For more details on the Logic app properties, see Logic App Workflow Management API.

For examples of the definition itself, see Author Logic App definitions.

For more information about creating templates, see Authoring Azure Resource Manager Templates.

For the complete template, see Logic App template.

What you deploy

With this template, you deploy a logic app.

To run the deployment automatically, select the following button:

Deploy to Azure


With Azure Resource Manager, you define parameters for values you want to specify when the template is deployed. The template includes a section called Parameters that contains all of the parameter values. You should define a parameter for those values that will vary based on the project you are deploying or based on the environment you are deploying to. Do not define parameters for values that will always stay the same. Each parameter value is used in the template to define the resources that are deploy.

When defining parameters, use the allowedValues field to specify which values a user can provide during deployment. Use the defaultValue field to assign a value to the parameter, if no value is provided during deployment.

We will describe each parameter in the template.


The name of the logic app to create.

"logicAppName": {
    "type": "string"


 "testUri": {
    "type": "string",
    "defaultValue": ""

Resources to deploy

Logic app

Creates the logic app.

The templates uses a parameter value for the logic app name. It sets the location of the logic app to the same location as the resource group.

This particular definition runs once an hour, and pings the location specified in the testUri parameter.

  "type": "Microsoft.Logic/workflows",
  "apiVersion": "2016-06-01",
  "name": "[parameters('logicAppName')]",
  "location": "[resourceGroup().location]",
  "tags": {
    "displayName": "LogicApp"
  "properties": {
    "definition": {
      "$schema": "",
      "contentVersion": "",
      "parameters": {
        "testURI": {
          "type": "string",
          "defaultValue": "[parameters('testUri')]"
      "triggers": {
        "recurrence": {
          "type": "recurrence",
          "recurrence": {
            "frequency": "Hour",
            "interval": 1
      "actions": {
        "http": {
          "type": "Http",
          "inputs": {
            "method": "GET",
            "uri": "@parameters('testUri')"
          "runAfter": {}
      "outputs": {}
    "parameters": {}

Commands to run deployment

To deploy the resources to Azure, you must be logged in to your Azure account and you must use the Azure Resource Manager module. To learn about using Azure Resource Manager with either Azure PowerShell or Azure CLI, see:

The following examples assume you already have a resource group in your account with the specified name.


New-AzureRmResourceGroupDeployment -TemplateUri -ResourceGroupName ExampleDeployGroup

Azure CLI

azure group deployment create --template-uri -g ExampleDeployGroup