Deploy a Bicep Template From an Azure Pipeline
Channel: Rowan Lea
Date: 2023-03-14

Deploying your Infrastructure as Code with Bicep on Azure doesn't need to be hard.

Today we'll look at how to deploy your cloud services using Bicep templates, and how to call them in your Azure DevOps pipelines, using Azure Container Registry as our example service.

-------------------------------------

What's on the agenda for today?
00:00 Introduction
01:01 Adding the Docker template
01:27 Adding the Bicep template
02:13 Setting up our pipeline
02:41 Setting up a service connection
03:24 Setting subscription permissions
03:44 Calling our Bicep from our pipeline
05:13 Deploying our container from the pipeline
06:45 Getting our Service Principal information
07:47 Create a container instance to test our app
08:30 Thanks for watching!

-------------------------------------

Microsoft template for Dockerfile:
https://learn.microsoft.com/en-us/dotnet/core/docker/build-container?tabs=windows#create-the-dockerfile

Microsoft template for main.bicep:
https://learn.microsoft.com/en-us/azure/container-registry/container-registry-get-started-bicep?tabs=CLI

Source code (Docker powershell script in azure-pipelines.yml):
https://github.com/rowanlea/BicepPipelineExample

-------------------------------------

If you need any help with Azure feel free to contact me through YouTube or any of the links below.

My Links:
► Website: https://rowanlea.co.uk/
► GitHub: https://github.com/rowanlea
► LinkedIn: https://www.linkedin.com/in/rowan-lea/
► Twitter: https://twitter.com/RowanLea1

You can also message me personally at: mail@rowanlea.co.uk

-------------------------------------

Join in and don't miss out by subscribing and returning weekly for the freshest and most exciting videos around!

#azure #bicep #pipeline #deployment