cicdepresentations

Presentations for The Digital Academy

View on GitHub

Infrastructure as Code Hands on Lab

In this lab we are going to create the infrastructure that we are going to be deploying our application to

  1. Login using az login Terraform uses your login credentials to create infrastructure
  2. Create a new folder
  3. Use the following instructions to create a Terraform file Virtual Machine
    https://www.terraform.io/docs/providers/azurerm/r/virtual_machine.html
  4. Ensure the Infrastructure is located in Canada and tag it with your name
  5. Convert the example VM to a Module with the following inputs
    • Resource Group Name
    • Location
    • VM Size
  6. Use the Script to provision some infrastructure in Azure.

N.B. The following guide will be useful in this task: https://www.terraform.io/docs/modules/index.html