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
- Launch Visual Studio Code
- 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.
In part 5 I go through the process of installing Git on my Windows device and enabling Git in Visual Studio Code.
The difference between 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, hosted in the cloud, 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
Click on the following link to access part 5 – Part 5: Terraform with Azure – Install Git and enable in Visual Studio Code | Cloud Build