Part 4: Terraform with Azure – How to install Azure Terraform Plugin in Visual Studio Code

Reading Time: 2 minutes

My journey preparing to get started with learning Terraform to allow me to deploy workloads into Microsoft Azure continues. If you missed the previous posts, please visit the links below.

Part 1: Terraform with Azure – How to install Terraform
Part 2: Terraform with Azure – How to install Azure cli
Part 3: Terraform with Azure – How to Install Visual Studio Code

In this blog post I will go through the process of installing the Azure Terraform plugin within Visual Studio Code.

The VSCode Azure Terraform extension is designed to increase developer productivity authoring, testing and using Terraform with Azure. The extension provides terraform command support, resource graph visualization and CloudShell integration inside VSCode. For more information visit the following link, Azure Terraform Extension

  1. Launch Visual Studio Code
  2. Click the extensions icon as shown in the screenshot below

3. Type Terraform in the search box and take a look at the various plugins available.

For now, I’ll only be installing extensions Azure Terraform and Syntax highlighting and autocompleting . You can also use keys Ctrl Shift and X to access the extensions area within Visual Studio Code

4. Allow the installs to complete

5. To verify the installations, type @installed in the search box as shown below.

Incase you’re wondering why the Azure Account extension was installed. When installing the Azure Terraform extension, Visual Studio Code will automatically install the Azure Account extension. Azure Account is a dependency file for the Azure Terraform extension, which it uses to perform Azure subscription authentications and Azure related code extensions.

Stay tuned for part 5 where I will go through the process of installing Git on my Windows device and enable in Visual Studio Code. I will also be setting up a GitHub account.

Git vs GitHub

– Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency. Git will allow you create a local repository on your device and manage versions of your files. It runs locally but if required you could clone your local version to the GitHub repository. More info at Git

– GitHub is a code hosting platform for version control and collaboration. It lets you and others work together on projects from anywhere. More info at GitHub

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.