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

Using Terraform with Azure (Setting the Stage)

Welcome to the Using Terraform with Azure lab. In this lab, we will cover three objectives: 1. Log into Azure 1. Create the Terraform Configuration 1. Deploy the Configuration By the end of the lab, you'll have deployed a container group to Microsoft Azure using Terraform.

Azure icon
Lab platform
Lab Info
Level
Intermediate
Last updated
Sep 22, 2025
Duration
15m

Contact sales

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

    Log into Azure

    In this objective, you'll use the credentials provided by the lab to log into Azure using the Azure CLI.

    1. Open your terminal and run the az login command
    2. In the browser window that opens, enter the credentials provided by the lab
    3. Run az account show to verify you've logged in successfully
  2. Challenge

    Create the Terraform Configuration

    In this objective, you'll create a Terraform configuration that deploys a container group to Azure.

    1. Create new directory and files to hold your Terraform configuration.
    2. Add a terraform block requiring major version 3 of the azurerm provider.
    3. Add an azurerm provider block with the skip_provider_registration argument set to true.
    4. Add a data source to reference the existing resource group.
    5. Add a container group resource that uses the ACI hello world image and exposes port 80 on a public URL.
      • Image reference: mcr.microsoft.com/azuredocs/aci-helloworld
    6. Add an output to display the FQDN of the container group.
    7. Initialize your working directory.
    8. Format and validate the code.
  3. Challenge

    Deploy the Configuration

    In this objective, you'll deploy the Terraform configuration to Azure and verify the deployment.

    1. Create a terraform.tfvars file and populate any required variables.
    2. Deploy the configuration to Azure.
    3. Visit the address shown in the output and verify the webpage loads.
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