Deploying resources using BICEP on Azure Devops – Cloud Support

  1. Create repo with following files

    main.bicep file with below contents

2. Create st.bicep and vnet.bicep defining storage and vnet

3. Create pipeline using below steps


4. Create build and deploy task in the pipeline

5. Below sample for azure-pipelines.yaml

Above code with deploy resource group ,storage account and vnet on Azure. Bicep can used for deploying any kind of resources using CI/CD pipeline.

Reference docs:

https://docs.microsoft.com/en-us/azure/azure-resource-manager/bicep/overview

https://docs.microsoft.com/en-us/azure/azure-resource-manager/bicep/quickstart-create-bicep-use-visual-studio-code?tabs=CLI

Leave a Reply

Your email address will not be published.