Breyta

Deila með


Quickstart: Create and deploy a Consumption logic app workflow in multi-tenant Azure Logic Apps with an ARM template

Applies to: Azure Logic Apps (Consumption)

Azure Logic Apps is a cloud service that helps you create and run automated workflows that integrate data, apps, cloud-based services, and on-premises systems by choosing from hundreds of connectors. This quickstart focuses on the process for deploying an Azure Resource Manager template (ARM template) to create a basic Consumption logic app workflow that checks the status for Azure on an hourly schedule and runs in multi-tenant Azure Logic Apps.

An Azure Resource Manager template is a JavaScript Object Notation (JSON) file that defines the infrastructure and configuration for your project. The template uses declarative syntax. You describe your intended deployment without writing the sequence of programming commands to create the deployment.

If your environment meets the prerequisites, and you're familiar with using ARM templates, select the Deploy to Azure button. The template will open in the Azure portal.

Button to deploy the Resource Manager template to Azure.

Prerequisites

If you don't have an Azure subscription, create a free Azure account before you start.

Review the template

This quickstart uses the Create a logic app template, which you can find in the Azure Quickstart Templates Gallery but is too long to show here. Instead, you can review the quickstart template's "azuredeploy.json file" in the templates gallery.

The quickstart template creates a Consumption logic app workflow that uses the built-in Recurrence trigger, which is set to run every hour, and a built-in HTTP action, which calls a URL that returns the status for Azure. Built-in operations run natively on Azure Logic Apps platform.

This template creates the following Azure resource:

To find more quickstart templates for Azure Logic Apps, review the Microsoft.Logic templates in the gallery.

Deploy the template

Follow the option that you want to use for deploying the quickstart template:

Option Description
Azure portal If your Azure environment meets the prerequisites, and you're familiar with using ARM templates, these steps help you sign in directly to Azure and open the quickstart template in the Azure portal. For more information, see Deploy resources with ARM templates and Azure portal.
Azure CLI The Azure CLI provides a command-line experience for creating and managing Azure resources. To run these commands, you need Azure CLI version 2.6 or later. To check your CLI version, enter az --version. For more information, see the following documentation:

- What is Azure CLI
- Get started with Azure CLI
Azure PowerShell Azure PowerShell provides a set of cmdlets that use the Azure Resource Manager model for managing your Azure resources. For more information, see the following documentation:

- Azure PowerShell Overview
- Introducing the Azure PowerShell Az module
- Get started with Azure PowerShell
Azure Resource Management REST API Azure provides Representational State Transfer (REST) APIs, which are service endpoints that support HTTP operations (methods) that you use to create, retrieve, update, or delete access to service resources. For more information, see Get started with Azure REST API.

  1. To sign in with your Azure account and open the quickstart template in the Azure portal, select the following image:

    Button to deploy the Resource Manager template to Azure.

  2. In the portal, on the Create a logic app using a template page, enter or select the following values:

    Property Value Description
    Subscription <Azure-subscription-name> The name for the Azure subscription to use
    Resource group <Azure-resource-group-name> The name for a new or existing Azure resource group. This example uses Check-Azure-Status-RG.
    Region <Azure-region> The Azure datacenter region to use your logic app. This example uses West US.
    Logic App Name <logic-app-name> The name to use for your logic app. This example uses Check-Azure-Status-LA.
    Test Uri <test-URI> The URI for the service to call based on a specific schedule. This example uses https://azure.status.microsoft/en-us/status/, which is the Azure status page.
    Location <Azure-region-for-all-resources> The Azure region to use for all resources, if different from the default value. This example uses the default value, [resourceGroup().location], which is the resource group location.

    The following example shows how the page looks with sample values:

    Screenshot showing Azure portal with "Create a Logic App using a template" properties and sample values.

  3. When you're done, select Review + create.

  4. Continue with the steps in Review deployed resources.

Review deployed resources

To view the logic app workflow, you can use the Azure portal, run a script that you create with Azure CLI or Azure PowerShell, or use the Logic App REST API.

  1. In the Azure portal search box, enter your logic app's name, which is Check-Azure-Status-LA in this example. From the results list, select your logic app.

  2. In the Azure portal, find and select your logic app, which is Check-Azure-Status-RG in this example.

  3. When the workflow designer opens, review the logic app workflow created by the quickstart template.

  4. To test the logic app, on the designer toolbar, select Run.

Clean up resources

If you plan to continue working with subsequent quickstarts and tutorials, you might want to keep these resources. When you no longer need the logic app, delete the resource group by using either the Azure portal, Azure CLI, Azure PowerShell, or Resource Management REST API.

  1. In the Azure portal, find and select the resource group that you want to delete, which is Check-Azure-Status-RG in this example.

  2. On the resource group menu, select Overview if not already selected. On the overview page, select Delete resource group.

  3. To confirm, enter the name for the resource group.

For more information, see Delete resource group.

Next steps