Terraform And Azure DevOps - How To Configure

Sdílet
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

Komentáře • 49

  • @AzureCloudAviator
    @AzureCloudAviator Před 2 lety +2

    Great Video Jack! You should do more videos like this one.

  • @hareeshp.j.7533
    @hareeshp.j.7533 Před 3 lety +2

    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.

  • @TomWhi
    @TomWhi Před 3 lety +3

    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.

  • @victors8809
    @victors8809 Před 19 dny

    Amazing lesson!

  • @NickBrown1968
    @NickBrown1968 Před rokem

    Really thorough video. I learned a whole load from it. Many thanks.

  • @vidyagowda2721
    @vidyagowda2721 Před 2 lety

    Great explanation Jack for the beginners. Thank You so much for sharing your knowledge. It helped me a LOT!!

  • @raghuhoskote9298
    @raghuhoskote9298 Před 3 lety +1

    Awesome explanation Jack, its really help full, Do add more videos on best practices. Looking forward for more videos

  • @rabb3255
    @rabb3255 Před 2 lety

    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

  • @fez9117
    @fez9117 Před 3 lety +12

    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

  • @walebello9125
    @walebello9125 Před 2 lety

    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

  • @MrSivaraj86
    @MrSivaraj86 Před 3 lety

    Thank you Jack the yml
    file helped me to solve the release apply path issue, thank you so much for your help

  • @sruthireddy1979
    @sruthireddy1979 Před rokem

    Its truly very good explanation and detailed... Thanks a ton bro...!

  • @indianjewelryshorts4161

    Thank you for explaining each step thoroughly and keep going :)

  • @mamaducamara796
    @mamaducamara796 Před 2 lety

    very well explained video. thanks for sharing

  • @terryseddon8781
    @terryseddon8781 Před rokem +1

    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!

  • @pipon39
    @pipon39 Před 3 lety +1

    your video is awesome !
    very good job
    you are wonderful !

  • @Emptychannnel
    @Emptychannnel Před 2 lety

    thanks a LOT! this helps me in my project,

  • @DavidBenOtto
    @DavidBenOtto Před rokem

    Thanks for this incredible video. I've a question is how to import existing resources in Azure with Terraform

  • @SanthoshKumar-sl7zc
    @SanthoshKumar-sl7zc Před rokem

    Really nice💯

  • @azrabbb
    @azrabbb Před 2 lety

    Great video thanks Jack

  • @yorkli6893
    @yorkli6893 Před 3 lety

    Awesome! great video. Thank you !

  • @craigrickett6156
    @craigrickett6156 Před 2 lety

    Great content, thank you

  • @akhilbisht11
    @akhilbisht11 Před 3 lety

    Excellent. Thanks

  • @stevencarter2768
    @stevencarter2768 Před 3 lety

    excellent tutorial!!! thank you!

  • @mksworld7557
    @mksworld7557 Před 3 lety

    excellent tutorial - keep it up

  • @narayanavelaga1909
    @narayanavelaga1909 Před rokem

    Hi Jack, you videos really helped me. I wanted to know How can we pass runtime parameters in the build pipeline using classic editor ?

  • @TiteufMela
    @TiteufMela Před rokem

    Hello,
    thank you, how can i create a multiple vms without destroying the existing vms resources ?

  • @fez9117
    @fez9117 Před 3 lety

    Great Vid Thanks !

  • @ThePawkon
    @ThePawkon Před 3 lety

    well done!

  • @dusanuksanovic5171
    @dusanuksanovic5171 Před 3 lety +2

    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.

    • @tis6931
      @tis6931 Před 3 lety

      likely the variables not added to the pipeline or you missed a step creating the managed identity

  • @naweed99nk
    @naweed99nk Před rokem

    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

  • @jthejainvikas
    @jthejainvikas Před rokem

    Can you share the link from where we can get the code which you used in this video?

  • @joeb.1163
    @joeb.1163 Před 2 lety

    Thanks , do you have the same example using the YAML pipeline

  • @MattLethargic
    @MattLethargic Před 3 lety

    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

    • @raghuhoskote9298
      @raghuhoskote9298 Před 3 lety

      Yes agreed, wht is the best way to fix this

    • @MattLethargic
      @MattLethargic Před 3 lety

      You can actually run the init command with the access key locally. Not the best, but it does work

  • @dost77
    @dost77 Před 2 lety

    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

  • @sebastijanp3
    @sebastijanp3 Před 2 lety

    Could you create same with yaml and no ui? I am sure you would have much more viewers.

  • @pankajdhami6434
    @pankajdhami6434 Před rokem

    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

    • @kegmysta
      @kegmysta Před rokem

      run the az login in your git repo in your ide first
      after you have authenticated via subscription, should be good to go

    • @pankajdhami6434
      @pankajdhami6434 Před rokem

      @@kegmystai was able to resolve this, thank you so much.

  • @srujanmettu
    @srujanmettu Před 3 lety

    I followed the same steps but i got an error at extracting the files while terraform apply , any help?

    • @Foobar142
      @Foobar142 Před 3 lety

      I actually have the same problem... were you able to fix it?

    • @Foobar142
      @Foobar142 Před 3 lety

      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

    • @MuhammadUsman-ze7pc
      @MuhammadUsman-ze7pc Před 3 lety

      did you figure it out? I am also getting the error on the same step.

    • @vineetnair2989
      @vineetnair2989 Před rokem

      @@Foobar142 hey, Im getting an error extracting that the file is being used by another process, any ideas what might be causing this ?

  • @shreyojitdas9333
    @shreyojitdas9333 Před 3 lety

    Can you please teach Aws?