Skip to content

Latest commit

 

History

History
47 lines (30 loc) · 1.17 KB

README.md

File metadata and controls

47 lines (30 loc) · 1.17 KB

Terraform Azure Providers

To run Terraform with azure provider, you will need to install Azure CLI.

To run these Terraform scripts, you must set your variables from a file. You can use azure.tfvars as a reference.

Navigate to Azure directory to inspect scripts from Azure provider.

~ » cd Azure

Commands to run:

Initialize a new or existing Terraform working directory

~ » terraform init

Validate the configuration files in a directory

~ » terraform validate

Generates an execution plan for Terraform with options (passing variable file as argument and outputing plan to file)

~ » terraform plan -out="plan.out" -var-file="azure.tfvars"

Builds or changes infrastructure according to Terraform configuration files. Pass plan file from previous step

~ » terraform apply "plan.out"

Available Terraform Scripts:

  • Resource Group
  • App Service Plan
  • App Service

Resources:

HashiCorp Guide - Azure Provider: Authenticating using the Azure CLI