Run an existing pipeline #
What is needed #
Azure subscription, DevOps project. Create a service connection in the DevOps project for the deployment.
Prepare the repository #
Take the pipeline from the IaC sample repository, https://github.com/forsback/IaC.
- Clone the Github repository
- Create a new Azure DevOps repo, clone it locally
- Copy from the Github repository, directory “bicep-with-yaml-variables-native-function” to the root of the Azure DevOps repository
Prepare variables #
Update the variables #
Rename the virtual network resource group in file template-variables.yml. Add your name after the “vnet-”.
vnetResourceGroup: rg-vnet-${{ parameters.env }}-001
Change the name of the service connection.
azureSubscription: 'vsprof-dev'
Push the changes to the remote DevOps repository
Run the pipeline #
Create a pipeline and run it. Login to the Azure portal and check that you can find the newly created resource group.
Hint, check the “Deployments” sub menu in the left pane and study all the details of the deployment.
Study the pipeline #
The pipeline uses the YAML variables described in Bicep with YAML variables. Try to understand how the pipeline is working. Start from the pipeline file, “azure-pipelines.yml”