Terraform + Azure DevOps: Automate Azure Cloud Infra Setup
Cloudamy
View ChannelAbout
Welcome to DevOps Coach channel! 🚀 Elevate your DevOps career with our immersive 12-week DevSecOps Coaching Program, meticulously crafted to provide hands-on experience across AWS and Azure cloud. Our fast-paced, lab-oriented sessions ensure that you gain practical skills through over 50 comprehensive lab exercises, emphasizing an 80% hands-on and 20% theoretical approach. Led by Coach AK, a TOGAF-certified architect with 24 years of IT experience, including over a decade in DevOps and cloud computing, you'll receive personalized guidance tailored to your professional growth. Our program also offers collaborative learning through dedicated WhatsApp groups, access to troubleshooting resources, and support in resume and interview preparation. Join the ranks of over 3,000 successful professionals who have transformed their careers with our unique, job-relevant coaching. Believe in yourself—anything is possible! Also please check out my personalized learning portal - www.cloudamy.com
Latest Posts
Video Description
In this video, you will learn how to create a Terraform CI/CD pipeline in Azure DevOps to automate infrastructure deployment on Azure cloud. This step-by-step tutorial covers integrating Terraform with Azure DevOps for Infrastructure as Code (IaC) and continuous delivery. https://www.coachdevops.com/2023/09/how-to-automate-infra-setup-in-azure.html Pre-requisites: Azure subscription Azure DevOps organization and project Terraform Build & Release Tasks extension in Azure DevOps Terraform files created and stored in SCM for creating resources in Azure cloud Implementation Steps: Create a resource group first in Azure cloud Create storage account, container for Terraform to store state information in Azure cloud remotely. Create pipeline and add Terraform tasks Execute pipeline to deploy resources(App service plan and WebApp) in Azure cloud Verify resources are created in Azure cloud Confirm if the terraform.tfstate file is updated Create Resource Group in Azure cloud Login to Azure portal, Create a new RG, or you can skip this step if you already have existing group. Create Storage Account in Azure cloud Create a new resource, type storage account Create a container inside the storage account Select the storage account you just created, click on containers under Data storage enter a name for the container Create a pipeline in Azure DevOps Login to Azure Devops, select Pipelines, select use the classic editor to create a pipeline Configure Pipeline with tasks Add Terraform installer task to install Terraform on build agent Add Terraform task Configure the task enter storage account, container, key information as below: Add Terraform task for plan change the command to plan from drop down and also select azure subscription from drop down Add Terraform task for apply change the command to apply from drop down and also select azure subscription from drop down Now verify to make sure if we have correct values in each/every task. Now click on Save + Queue. Click on Save and Run This confirms that pipeline have successfully created resources in Azure cloud. You can login to Azure portal to see the resources - app service plan and web app. You can also verify terraform state info which has resources entry for all the resources created Click on Containers, mytfstatecontainer Click on terraform.tfstate Click on Edit to view the content of terraform state file Clean up resources created in Azure using the pipeline - destroy command change the command to destroy instead of apply from the drop down You can either add a new task for destroy or modify to destroy from apply in the existing task. Now save the pipeline and run the pipeline. check the output of destroy task Check terraform.tfstate file after destroy. If you found this video helpful and want to go deeper into DevOps, Cloud Computing, and real-world project implementation, we have got more for you! Check out our full Master DevOps Program at http://www.cloudamy.com/ Connect with Coach AK on LinkedIn https://www.linkedin.com/in/ananthkannan #Terraform #AzureDevOps #AzureCloud #DevOps #InfrastructureAsCode
Transform Your Space Today
AI-recommended products based on this video
![Command Medium Picture Hanging Strips [Removable]: 12 Pairs (White)](https://m.media-amazon.com/images/I/61IChX1hbML._AC_UL960_FMwebp_QL65_.jpg)
Command Medium Picture Hanging Strips [Removable]: 12 Pairs (White)

Cordless Paint Sprayer for Dewalt 20V MAX Battery.Paint Spray Gun with Powerful Motor and 4 Copper Nozzle.650w Electric HVIP Sprayer for House Painting,Furniture, Wall, Door.(NOT Battery)

Paint Sprayer Electric Spray Gun: 700W Spray Paint Gun with 1200ml Container, 4 Nozzles & 3 Patterns, Adjustable Air Flow, Easy Cleaning for House Painting, Furniture, Fence, Walls, Door (Red)

Paint Sprayer Electric Spray Gun: 700W Spray Paint Gun with 1200ml Container, 4 Nozzles & 3 Patterns, Adjustable Air Flow, Easy Cleaning for House Painting, Furniture, Fence, Walls, Door (Royal Blue)

Generic Collapsible Washing up Bowl Folding Dish Basin Bucket Portable Dish Pan Foldable Wash Basin for Camping Beach RV Backpacking, Green 38x23.5x11.5cm

LEGO Icons Bonsai Tree Building Set - Artificial Bonsai Tree Plants for Home Decor, Adults Ages 18+ - Faux, Fake Plants for Table, Desk, Office - Birthday Gift for Men & Women - 10281

RoboSeal Rechargeable Mason Jar Vacuum Sealer for Mason Jars Wide and Regular, One Touch Vacuum Sealer for Jars, 10 Lids Included, Digital Battery Indicator, As Seen on TV

Environet Hydroponic Growing Kit, Self-Watering Mason Jar Herb Garden Starter Kit Indoor, Windowsill Herb Garden, Grow Your Own Herbs from Organic Seeds (Basil)

2 Pack Outdoor Solar Firework Lights, 240 LED Solar Powered Hanging Lights Outdoor Waterproof Hanging Fairy Garden Lights Landscape Lights(Warm White)

HONYUEYIM 2 PCS Handmade Boho Coasters,100% Cotton Woven Macrame Absorbent Coasters for Drinks,Heat Resistant Office Cotton Coasters for Coffee Table,Desk Kitchen Dining Room Kitchen,Housewarming Gift (Pink)




