Skip to content

Latest commit

 

History

History
39 lines (21 loc) · 1.15 KB

File metadata and controls

39 lines (21 loc) · 1.15 KB

Step By Step Terraform Tutorial

Useful for Preparation for Terraform Associate exam.

I started as I was preparing for the Terraform Associate exam. Then I decided to make this a step by step tutorial.

Give a Star! ⭐

If you like or found this useful, please give it a star. Thanks!

Some useful commands

  • az account show

  • az account list

  • az account set --subscription "Microsoft Azure Sponsorship"

  • az account set --subscription "Mewurk - DevTest"

The following needs to be used in azure powershell

  • Get-AzResourceGroup

  • Select-AzSubscription -SubscriptionName "Microsoft Azure Sponsorship"

  • Get-AzResourceGroup

Setting up the system

  • Since we are working with Azure, First install azure cli. This will be the provider for Terraform.

    • Then execute az login command.
    • Then execute az account show and ensure, your subscription details are displayed.
  • Now install terraform.

  • Just a trial. Here we go