Skip to content

Files

101 lines (65 loc) · 3.94 KB

quickstart-create-deploy-bicep.md

File metadata and controls

101 lines (65 loc) · 3.94 KB
title description author services ms.suite ms.topic ms.author ms.custom ms.date
Quickstart - Create Consumption logic app workflow with Bicep
How to create and deploy a Consumption logic app workflow with Bicep.
schaffererin
logic-apps
integration
quickstart
v-eschaffer
mvc, subject-armqs, devx-track-azurepowershell, mode-arm
04/07/2022

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

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 a Bicep file 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.

[!INCLUDE About Bicep]

Prerequisites

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

Review the Bicep file

The Bicep file used in this quickstart is from Azure Quickstart Templates.

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 Bicep file creates the following Azure resource:

:::code language="bicep" source="~/quickstart-templates/quickstarts/microsoft.logic/logic-app-create/main.bicep":::

Deploy the Bicep file

  1. Save the Bicep file as main.bicep to your local computer.

  2. Deploy the Bicep file using either Azure CLI or Azure PowerShell.

    az group create --name exampleRG --location eastus
    az deployment group create --resource-group exampleRG --template-file main.bicep --parameters logicAppName=<logic-name>
    
    New-AzResourceGroup -Name exampleRG -Location eastus
    New-AzResourceGroupDeployment -ResourceGroupName exampleRG -TemplateFile ./main.bicep -logicAppName "<logic-name>"
    

    [!NOTE] Replace <logic-name> with the name of the logic app to create.

    When the deployment finishes, you should see a message indicating the deployment succeeded.

Review deployed resources

Use the Azure portal, Azure CLI, or Azure PowerShell to list the deployed resources in the resource group.

az resource list --resource-group exampleRG
Get-AzResource -ResourceGroupName exampleRG

Clean up resources

When you no longer need the logic app, use the Azure portal, Azure CLI, or Azure PowerShell to delete the resource group and its resources.

az group delete --name exampleRG
Remove-AzResourceGroup -Name exampleRG

Next steps

[!div class="nextstepaction"] Quickstart: Create Bicep files with Visual Studio Code