In this post we will discuss, how to setup CD for IaC. IaC code is hosted in GitHub repo.

Before we start please refer

  • Go to Build and Release menu, click on Release in sub menu. Choose the “+” icon to create a new release definition.Create release definition dialog, select the Empty Process.

j

Give Environment a name and specify who is the owner of it.

j

Add another environment by

j

Add artifacts from github repo

j

To add github repo, we need to create service endpoint.

j

j

Read More about service endpoint

Select repo and branch j

We can schdule the trigger

j

Let’s add deployment task, search for Azure Deployment.

j

Provide Azure subscription (service endpoint) and resource group name.

j

Create variables, if required in your template.

j

Here, I am choosing URL of the file, as my templates are in github.

j

Override template parameters: Provide values, which needs to be override, based on environments.

j

Save the task

j

Create release for deployment

j

Select the environment, where you would like to have a deployment.

j

Click on create, this will create the Release.

j

j

Click on deploy

j

click on deploy. j

As, I am using hosted agent, it will wait for agent availablity. j

Click on logs to see the step by stpe progress

j

Related Posts

About Ajeet Chouksey

With a robust background spanning more than 18 years, I am an adept Azure and Azure DevOps architect and engineer, dedicated to crafting Azure-centric solutions that prioritize customer requirements and agile methodologies. My expertise encompasses steering extensive cloud migration initiatives and advocating for Azure best practices, all aimed at streamlining costs and steering multinational teams towards success. Fueled by a passion for technological innovation, I am committed to perpetual learning, constantly advancing my proficiency in Azure, AI, MLOps, and Product Management to stay at the forefront of the industry..