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]
If you don't have an Azure subscription, create a free Azure account before you start.
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:
- Microsoft.Logic/workflows, which creates the workflow for a logic app.
:::code language="bicep" source="~/quickstart-templates/quickstarts/microsoft.logic/logic-app-create/main.bicep":::
-
Save the Bicep file as main.bicep to your local computer.
-
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.
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
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
[!div class="nextstepaction"] Quickstart: Create Bicep files with Visual Studio Code