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

Deploy to Azure Using the Terraform Command Line Interface (CLI)

In this hands-on lab, you will author a Terraform configuration for Azure and apply the configuration using the Terraform Command Line Interface (CLI). > **Important Note**: Version 4.x of the AzureRM provider for Terraform introduces breaking changes, you must **use version 3.116.0** or lower to follow the guide and/or videos provided with this lab. Please refer to the lab guide for more details.

Azure icon
Lab platform
Lab Info
Level
Intermediate
Last updated
Sep 24, 2025
Duration
30m

Contact sales

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

    Log In to Azure
    1. Connect to the virtual machine using the credentials provided.
    2. Using the terminal in Visual Studio Code, log in to Azure using the Azure CLI.
  2. Challenge

    Author Your Terraform Configuration
    1. Create a folder for your configuration.
    2. Create a main.tffile in the folder.
    3. Author your configuration, including the terraform block and required providers meta-argument.
    4. Use azurerm provider version 3.116.0 or lower.

    Note: Version 4.x of the AzureRM provider for Terraform introduces breaking changes, you must use version 3.116.0 or lower to follow the guide and/or videos provided with this lab.

  3. Challenge

    Initialize the Working Directory

    Use the Terraform executable to initialize the working directory.

  4. Challenge

    Declare Your Provider Configuration
    1. Add the provider configuration block to your Terraform configuration file.
    2. The skip_provider_registration = true must be set.
  5. Challenge

    Import the Existing Resource Group

    Import the existing resource group into your Terraform state.

  6. Challenge

    Declare a Storage Account Resource

    Create an Azure Storage Account resource block, using the following properties:

    ```
    account_tier = "Standard"
    account_replication_type = "LRS"
    ```
    
  7. Challenge

    Format and Validate the Configuration

    Use the Terraform executable to format and validate the configuration.

  8. Challenge

    Plan and Deploy Your Configuration

    Use the Terraform executable to plan and apply your configuration.

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