Skip to content

Latest commit

 

History

History
61 lines (39 loc) · 2.01 KB

README.md

File metadata and controls

61 lines (39 loc) · 2.01 KB

Terraform Azure Examples

Personal experimentation using Terraform to setup infrastructure on Azure.

Note that detailed documentation is provided within the individual example folders themselves.

To view detailed progression over time see the Changelog.

Examples

Roadmap

Started:

  • Provide an Example Deploying a Virtual Machine Linux Server to Azure (#7)
  • Provide Example Provisioning Azure Container Registry - acr (#3)

Not Started:

  • Provide Example Provisioning a Linux VM Server
  • Provide an Example Utilizing other Authentication Methods outside the scope of az-cli for demonstrating CI/CD and deployment pipelines.

Appendix

Install Terraform on Linux (WSL)

#/bin/bash
sudo apt-get update && sudo apt-get install -y gnupg software-properties-common curl
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
sudo apt-get update && sudo apt-get install terraform
terraform -install-autocomplete

Note: the install script also installs autocompletion for your default shell (bash and zsh are supported)

Azure CLI Authentication

The scripts folder also contains scripts to install necessary Windows Host dependencies: az-cli and (optionally) terraform.

# install az via chocolatey
cinst -y az

# login
az login

# list accounts
az account list

# set subscription via its ID from above
az account set --subscription="SUBSCRIPTION_ID"

See: Azure Provider: Authenticating using Azure CLI for details.