Unlock the Power of Terraform: Manage resources using Cross-References

Опубликовано: 11 Апрель 2026
на канале: Nilesh Gule
213
5

Welcome to our step-by-step tutorial on how to cross reference a Resource Group on Microsoft Azure using Terraform.

In this video, we'll walk you through the entire process to get Terraform up and running with Azure. We will initialize the Azure resource manager provider for Terraform and then plan and create a Resource Group, Virtual network (vnet) and Subnet. Finally, we will see how to delete the resource using the Terraform destroy command. We will see how to improve maintainability of the Terraform code using multiple files and cross reference objects to reduce duplication and hard coded values.

If you found this tutorial helpful, please give us a thumbs up, subscribe to our channel for more tech tutorials, and don't forget to hit the notification bell so you never miss an update. Feel free to leave any questions or suggestions in the comments below. Thanks for watching, and happy coding.

Until next time, Code with Passion and Strive for Excellence 🚀

#Terraform #azure #azurerm #TerraformTutorial

▬▬▬▬▬▬ 🔗 Additional Info 🔗 ▬▬▬▬▬▬

🔗 Terraform - https://developer.hashicorp.com/terra...
🔗 Terraform official provider for Azure - https://registry.terraform.io/provide...
🔗 Terraform documentation for Azure Resource Group Module - https://registry.terraform.io/provide...
🔗 VS Code extension for Hashicorp Terraform - https://marketplace.visualstudio.com/...
🔗 VS Code extension for Azure Terraform - https://marketplace.visualstudio.com/...
🔗 Terraform documentation for Azure Resource Group Module - https://registry.terraform.io/provide...
🔗 YouTube video on how to install Terraform using Homebrew -    • Easiest way to install Terraform on Mac us...  
🔗 YouTube video on how to provision Azure Resource Group using Terrafrom -    • From Zero to Resource Group Hero: Terrafor...  
🔗 Github repository with the source code - https://github.com/NileshGule/terraform/

▬▬▬▬▬▬ ⏱ Chapters⏱ ▬▬▬▬▬▬
00:00 - Quick overview of need for cross referencing Azure Resource Group using Terraform
00:50 - Prerequisite (Terraform CLI, VS Code, Azure CLI)
01:20 - Terraform stages overview
01:50 - Provider configuration for Azure Resource Manager
03:30 - VNet and Subnet configuration
04:50 - Initialize Azurerm provider using Terraform init
05:10 - Terraform plan
11:30 - Terraform apply
05:56 - Remove hardcoded resource attributes using cross-referencing
07:40 - Look at the plan with updated values
09:15 - Create resources using Terraform apply command with auto approval
09:55 - Visualise resources using Azure portal
10:40 - List resources using Terraform state command
11:00 - Update resource attribute and see changes
12:55 - Terraform destroy with auto approval
13:25 - Summary


▬▬▬▬▬▬ 👋 Contact me 👋 ▬▬▬▬▬▬
Connect with me here:
🔗 Subscribe:    / @nilesh-gule  
🔗 YouTube :    / @nilesh-gule  
🔗 GitHub: https://github.com/nileshgule
🔗 Twitter:   / nileshgule  
🔗 Website: https://www.HandsOnArchitect.com/
🔗 LinkedIn :   / nileshgule