Рет қаралды 12,986
Sometimes it’s necessary to use resources that already exist with a Terraform deployment. In this video, we go over Terraform Data Source, a way to reference existing Azure resources without importing them into Azure to be managed. A VM is deployed and added to an existing VNet for the example. This video also reviews sensitive arguments in variables, adding features to the Provider block and using a terraform.tfvars file.
00:00 - Start
02:24 - Windows Server Module
03:13 - Sensitive Argument
04:01 - Provider Features
05:14 - Data Source
06:38 - terraform.tfvars
07:53 - Deploy the Resource
LINKS:
Zero to Hero with Azure Virtual Desktop
www.udemy.com/course/zero-to-hero-with-windows-virtual-desktop/?referralCode=B2FE49E6FCEE7A7EA8D4
Hybrid Identity with Windows AD and Azure AD
www.udemy.com/course/hybrid-identity-and-azure-active-directory/?referralCode=7F62C4C6FD05C73ACCC3
Terraform Playlist
kzbin.info/aero/PLnWpsLZNgHzVVslxs8Bwq19Ng0ff4XlFv
Code on Github
github.com/tsrob50/TerraformExamples
Blog
www.ciraltos.com/use-existing-resources-with-data-sources-in-terraform-and-azure/
Terraform Provider Site registry.terraform.io/