Thanks for posting your question in the Microsoft Q&A forum.
This guide assumes that you already have an existing ARM template for your Logic App.
- Azure DevOps Pipeline: Create a new pipeline in Azure DevOps that uses your Git repository as the source.
- Add Deployment Task: Add a task to deploy your ARM template. You can use the "Azure Resource Group Deployment" task for this. Configure the task with your Azure subscription and resource group information. Point the
Template location
to the location of your ARM template in the repository. - Handle Connections: Connections are usually stored as parameters in ARM templates. Make sure your ARM template includes the necessary parameters for connection strings or details. Store sensitive information (like secrets or connection strings) in Azure Key Vault and reference them in your ARM template.
- Secure Connection Strings: If your Logic App uses connections to Azure Blob, SFTP, or Key Vault, ensure that sensitive information is stored securely. Use Azure Key Vault to store secrets.
- Service Connection: In Azure DevOps, set up a service connection that has the necessary permissions to deploy resources to your Azure subscription.
- Pipeline Variables: Define pipeline variables to store sensitive information that your Logic App ARM template uses, such as connection strings.
- Use Variable Groups: Consider using Azure DevOps Variable Groups to store and manage variables across multiple pipelines.
- Trigger the Pipeline: Configure triggers for your pipeline to run automatically upon changes to the repository.
- Test and Monitor: Run the pipeline and monitor the deployment logs for any errors or issues.
- Key Vault References: Ensure that the Logic App ARM template references the values stored in Azure Key Vault. You can use Key Vault references like
reference(variables('keyVaultName'), '2024-03-01', 'Secret', 'mySecret')
in your parameters. - Manage Connections in Logic App Designer: After deployment, open the Logic App in the Azure Portal, go to the Logic App Designer, and verify/update connections as needed.
- Parameterize Connections: If your Logic App workflows use connections, parameterize them in the ARM template, and pass the values during deployment.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful