Featured resource
2025 Tech Upskilling Playbook
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Check it out
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Cloud
Azure icon
Labs

Provide Continuous Delivery with GitHub and Terraform Cloud for Azure

In this hands-on lab, you'll create a Git repository for Terraform for your Terraform infrastructure and configure continuous delivery (CD) using GitHub Actions and Terraform Cloud.

Azure icon
Lab platform
Lab Info
Level
Intermediate
Last updated
Sep 25, 2025
Duration
1h 0m

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
Table of Contents
  1. Challenge

    Set Up Your Environment
    1. Set up your development environment by connecting to the Virtual Machine using remote desktop and the credentials provided.
    2. Within the Virtual Machine, using Microsoft Edge, log in to the Azure Portal using the credentials provided. Then log in to your GitHub account and your Terraform Cloud account.
  2. Challenge

    Create a GitHub Repository

    Create a GitHub repository for your Terraform infrastructure.

  3. Challenge

    Create a Workspace in Terraform Cloud
    1. Go to https://app.terraform.io/ and create a Terraform Cloud workspace.
    2. Create four environment variables to authorize access to Azure, with the following details:
      1. ARM_SUBSCRIPTION_ID - Use the subscription ID from the Azure portal.
      2. ARM_CLIENT_ID - Use the Client ID from the lab details.
      3. ARM_CLIENT_SECRET - Marked as sensitive, use the client secret from the lab details.
      4. ARM_TENANT_ID - Use the Azure AD Tenant ID from the Azure portal.
  4. Challenge

    Configure Continuous Delivery
    1. Create a GitHub Actions workflow using the following YAML file.
    2. Create a GitHub Actions repository secret with the name TF_API_TOKEN and use the value of a Terraform Cloud API User Token.
  5. Challenge

    Configure Branch Protection Rules

    Create a branch protection rule to protect the main branch by requiring approvals and preventing bypassing of the configured protection rules.

  6. Challenge

    Author the Configuration
    1. Clone the Git repository to the virtual machine.
    2. Create a branch for your work.
    3. Use the terraform file named main.tf in the C:\Terraform folder on the workstation.
    4. Add the Terraform Cloud configuration from your Terraform Cloud workspace.
    5. Import the existing resource group for the hands-on-lab into your state.
    6. Commit your changes and publish your branch.
  7. Challenge

    Create and Complete a Pull Request
    1. Create and complete a pull request to push your changes to the main branch.

      To complete the pull request without a second reviewer, you will need to Allow bypassing branch protection rules by deselecting Do not allow bypassing the above settings in the branch protection policy.

  8. Challenge

    Review Results
    1. Review the results in GitHub Actions.
    2. Review the results in the Azure portal.
About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

Real skill practice before real-world application

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight