Terraform And Azure DevOps - How To Configure
Vložit
- čas přidán 7. 09. 2024
- Key Timings:
00:00:30 Overview End To End Process
00:14:54 Creating Azure DevOps Project & Cloning Repo
00:20:31 Setting up Azure resources for Terraform Backend & Key Vault for secret storage
00:41:50 Creating initial Terraform files (Backend, Providers etc.) & pushing to Azure DevOps
00:48:50 Creating Terraform Plan & Status Check Build Pipelines
01:05:54 Creating Terraform Apply Release Pipeline
01:16:01 Configuring Branch Policies & Pull Request reviewers & checks
01:22:55 Testing all our hard work!
Blog Post: jacktracey.co....
In this video I walk you through how to configure an Azure DevOps project, with it's Repo, Pipelines and other associated resources to build a fully functioning Terraform deployment process.
Twitter: @Jack_Ref - / jack_ref
Great Video Jack! You should do more videos like this one.
Thanks Jack. Very nicely explained. Great crash course and to the point with pre-reqs for an end to end ADO pipeline set-up, I had been looking for something like this for ages, but now I fully understand concepts and the entire pipeline workflow.
Jack this is a brilliant video, thank you. I think you actually helped me (and Lee) with a weird Synapse policy issue this year so it’s great to see your video and blog which I’ll start to follow. We’re just starting down the enterprise CAF route so I’m trying to get ahead of the curve, this video helps greatly. It’d be great to see more content on enterprise CAF if you’ve got any good resources for a simpleton like me.
Amazing lesson!
Really thorough video. I learned a whole load from it. Many thanks.
Great explanation Jack for the beginners. Thank You so much for sharing your knowledge. It helped me a LOT!!
Awesome explanation Jack, its really help full, Do add more videos on best practices. Looking forward for more videos
Brilliant content Jack, this is extremely useful and will help cut through all the noise when trying to use pipelines in ADO with TF. Thanks
Can you do an example video for a pipeline for deploying into multi environments please, say for example, 4 stages: Plan Dev > Apply Dev > Plan prod > apply prod
Thank you for this wonderful course. I have been searching for an end-to-end training on deploying infrastructure using Terraform with Azure DevOps CICD pipeline
Thank you Jack the yml
file helped me to solve the release apply path issue, thank you so much for your help
where do you see the yml file?
Its truly very good explanation and detailed... Thanks a ton bro...!
Thank you for explaining each step thoroughly and keep going :)
very well explained video. thanks for sharing
You've probably already realised and since deleted all the keys etc, but if not, you didn't blur them out the 40 min mark!
your video is awesome !
very good job
you are wonderful !
thanks a LOT! this helps me in my project,
Thanks for this incredible video. I've a question is how to import existing resources in Azure with Terraform
Really nice💯
Great video thanks Jack
Awesome! great video. Thank you !
Great content, thank you
Excellent. Thanks
excellent tutorial!!! thank you!
excellent tutorial - keep it up
Hi Jack, you videos really helped me. I wanted to know How can we pass runtime parameters in the build pipeline using classic editor ?
Hello,
thank you, how can i create a multiple vms without destroying the existing vms resources ?
Great Vid Thanks !
well done!
Geat work Jack!
Does anyone had this error by any chance, when running pipeline after pull request (test to main), on task "Terraform Init"?
Error: Error building ARM Config: obtain subscription() from Azure CLI: Error parsing json result from the Azure CLI: Error waiting for the Azure CLI: exit status 1: ERROR: Please run 'az login' to setup account.
likely the variables not added to the pipeline or you missed a step creating the managed identity
Just a quick question. Can we not create pipeline that would use azure storage (container) instead of using a release? If so can you please shed the benefits and disadvantages of the two methods? I am a novice to apologizes in advance if it doesn't make sense
Can you share the link from where we can get the code which you used in this video?
Thanks , do you have the same example using the YAML pipeline
Great video, the problem though is with this setup you can't run init locally because of the lack of access_key I'm the backend config. I don't want to have to push to git to run validate for the first time
Yes agreed, wht is the best way to fix this
You can actually run the init command with the access key locally. Not the best, but it does work
Hi Jack,
Great explanation and a very nice video. However, I am running into following error when running TF Init task
Generating script.
Script contents: shell
terraform init -backend-config="access_key=${azdotfstorageaccount001-key1}"
Error: Failed to get existing workspaces: Error creating storage client for storage account "azdotfstorageaccount001": azure: malformed storage account key: illegal base64 data at input byte 0
I tried regenerating the keys but it did not help. Any help from anyone is really appreciated.
Thanks
Could you create same with yaml and no ui? I am sure you would have much more viewers.
Hi Jack,
This is great but getting one issue while running Terraform init using backend config getting an error something like this
Error: building AzureRM Client: obtain subscription() from Azure CLI: parsing json result from the Azure CLI: waiting for the Azure CLI: exit status 1: ERROR: Please run 'az login' to setup accoun
run the az login in your git repo in your ide first
after you have authenticated via subscription, should be good to go
@@kegmystai was able to resolve this, thank you so much.
I followed the same steps but i got an error at extracting the files while terraform apply , any help?
I actually have the same problem... were you able to fix it?
after digging around for over an hour... I realized that I had a typo in the root folder of the Archive. czcams.com/video/AWXOYS-SBfY/video.html
did you figure it out? I am also getting the error on the same step.
@@Foobar142 hey, Im getting an error extracting that the file is being used by another process, any ideas what might be causing this ?
Can you please teach Aws?