In this video, we build an Azure DevOps pipeline with stages to deploy resources built with Terraform. We start by reviewing the environment including the code and the storage account used for the backend Terraform data. We add the Terraform extension to DevOps and create a multiple stage Azure DevOps pipeline with tasks to initialize, verify plan and apply the Terraform configuration. Next, we create a second pipeline to run the destroy command to clean up the deployment.
00:00 - Start
01:37 - Demo Overview
02:59 - Add a Service Connection
04:17 - Add the Terraform Extension
05:45 - Create the Pipeline
06:45 - Add the Validate Stage
08:04 - Add Terraform Install Task
09:03 - Add Terraform Init Task
10:41 - Add Terraform Verification Task
11:18 - Add the Deploy Stage
12:41 - Create the Deployment Jobs
13:54 - Add Terraform Plan Task
14:33 - Add Terraform Apply Task
15:09 - Run the Pipeline
17:23 - Create a Destroy Pipeline
Links:
Terraform Playlist
[ Ссылка ]
Azure DevOps Playlist
[ Ссылка ]
Files on GitHub
[ Ссылка ]
Zero to Hero with Azure Virtual Desktop
[ Ссылка ]
Hybrid Identity with Windows AD and Azure AD
[ Ссылка ]
![](https://s2.save4k.ru/pic/d85-KD9stqc/maxresdefault.jpg)