Deploy logic apps with Azure Resource Manager templates

After you create an Azure Resource Manager template for deploying your logic app, you can deploy your template in these ways:

Deploy through Azure portal

To automatically deploy a logic app template to Azure, you can choose the following Deploy to Azure button, which signs you in to the Azure portal and prompts you for information about your logic app. You can then make any necessary changes to the logic app template or parameters.

Deploy to Azure

For example, you're prompted for this information after you sign in to the Azure portal:

  • Azure subscription name
  • Resource group that you want to use
  • Logic app location
  • The name for your logic app
  • A test URI
  • Acceptance of the specified terms and conditions

For more information, see Deploy resources with Azure Resource Manager templates and the Azure portal.

Authorize OAuth connections

After deployment, the logic app works end-to-end with valid parameters. However, you must still authorize OAuth connections to generate a valid access token. For automated deployments, you can use a script that consents to each OAuth connection, such as this example script in the GitHub LogicAppConnectionAuth project. You can also authorize OAuth connections through the Azure portal or in Visual Studio by opening your logic app in the Logic Apps Designer.

Deploy with Azure PowerShell

To deploy to a specific Azure resource group, use this command:

New-AzResourceGroupDeployment -ResourceGroupName <Azure-resource-group-name> -TemplateUri 

To deploy to a specific Azure subscription, use this command:

New-AzDeployment -Location <location> -TemplateUri 

Deploy with Azure CLI

To deploy to a specific Azure resource group, use this command:

az group deployment create -g <Azure-resource-group-name> --template-uri

To deploy to a specific Azure subscription, use this command:

az deployment create --location <location> --template-uri

For more information, see these topics:

Deploy with Azure DevOps

To deploy logic app templates and manage environments, teams commonly use a tool such as Azure Pipelines in Azure DevOps. Azure Pipelines provides an Azure Resource Group Deployment task that you can add to any build or release pipeline. For authorization to deploy and generate the release pipeline, you also need an Azure Active Directory (AD) service principal. Learn more about using service principals with Azure Pipelines.

Here are general high-level steps for using Azure Pipelines:

  1. In Azure Pipelines, create an empty pipeline.

  2. Choose the resources you need for the pipeline, such as your logic app template and template parameters files, which you generate manually or as part of the build process.

  3. For your agent job, find and add the Azure Resource Group Deployment task.

    Add "Azure Resource Group Deployment" task

  4. Configure with a service principal.

  5. Add references to your logic app template and template parameters files.

  6. Continue to build out steps in the release process for any other environment, automated test, or approvers as needed.

Get support

For questions, visit the Azure Logic Apps forum.

Next steps