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

As Technology Architect, Ajeet has over 12+ years of industry experience delivering enterprise solutions on the Microsoft Platform. Ajeet is passionate, certified technologist, blogger and community contributor. His specialisms are Azure IaaS/PaaS, Automation, DevOps, Agile based development processes supporting distributed teams (on shore & off shore), designing and implementing the appropriate infrastructure and platform solutions to meet the functional, operational, and deployment requirements throughout the solution life-cycle. Ajeet is member of various technical communities and discussion groups. He also conducted many boot camps on Azure and DevOps.