HashiCorp Terraform on Azure

Easily manage infrastructure as code using a familiar automation tool

New to Azure? Start for free

Simplify infrastructure management

Define infrastructure as code with declarative configuration files that can be used to create, manage and update infrastructure resources, such as virtual machines (VMs), networks and containers. Use the Terraform configuration language to easily automate resource management across your workflow.

Why Terraform on Azure?

Pre-integrated

Terraform is built into Azure Cloud Shell and authenticated to your subscription, so it’s integrated and ready to go. Build and test modules in Azure with the Azure Terraform extension for Visual Studio Code, providing Terraform command support, resource graph visualisation and Azure Cloud Shell integration directly within Visual Studio Code.

Community-led

Microsoft and HashiCorp engineering teams work together with the Terraform community to continually develop the Azure Terraform provider and modules. Join the GitHub repository to make feature requests, report issues and contribute.

Enterprise-ready

Streamline operations and provision any infrastructure more securely and efficiently with Terraform Enterprise. Centralise infrastructure deployment within one workflow and provision, govern and audit any environment.

Explore common Terraform on Azure scenarios

Example DevOps workflow with Terraform on Azure

Immutable Infrastructure CI/CD using Jenkins and Terraform on Azure Virtual Architecture overviewAzure is a world-class cloud for hosting virtual machines running Windows or Linux. Whether you use Java, Node.js, Go, or PHP to develop your applications, you’ll need a continuous integration and continuous deployment (CI/CD) pipeline to push changes to these virtual machines automatically.JenkinsAzure Virtual MachineScale SetsTerraformAzure Managed Disks(VM Image)PackerGitHubEngineerAzure Log Analytics1765554423Visual Studio Code
  1. Overview
  2. Flow

Immutable Infrastructure CI/CD using Jenkins and Terraform on Azure Virtual Architecture overview

Overview

Azure is a world-class cloud for hosting virtual machines running Windows or Linux. Whether you use Java, Node.js, Go or PHP to develop your applications, you’ll need a continuous integration and continuous deployment (CI/CD) pipeline to push changes to these virtual machines automatically.

Flow

  1. 1 Change application source code.
  2. 2 Commit code to GitHub.
  3. 3 Continuous Integration Trigger to Jenkins.
  4. 4 Jenkins triggers a Packer image build to create a VM and stores it as a VM image using Azure Managed Disks.
  5. 5 Jenkins triggers Terraform to provision a new Virtual Machine Scale Set using the Azure Managed Disks VM image.
  6. 6 Azure Log Analytics collects and analyses logs.
  7. 7 Monitor application and make improvements.

See how customers are using Terraform with Azure

Get started quickly

Create your Azure free account.
Create a VM using Terraform.

Other HashiCorp solutions on Azure

HashiCorp Vault

Manage secrets and protect sensitive data across dynamic, distributed environments.

HashiCorp Consul

Connect, secure and configure services across any runtime platform and public or private cloud.

Stay up to date with our blog

View all updates

Dig deeper – learn more about Terraform on Azure

Go to the documentation