Saturday, 1 May 2021

Generating Terraform Graphs for Azure with Visual Studio Code

 Terraform is widely used for infrastructure as code implementations (IaC) even on Azure cloud resource deployments. Identifying resources in more visualize way would be useful and terraform support creating such graphs. Utilizing same command in VS Code in a bit more sophisticated way is available with the Azure Terraform extension to VS Code.

In VS Code install extension by searching for Azure Terraform.

Open a folder where you contain your terraform files VS Code and press Ctrl+Shift+P to get the command palette. Then execute command Azure Terraform: Visualize.


You will be prompted for running the command locally in integrated terminal. Select OK.


A graph will be generated as a png file representing your terraform code resources.



No comments:

Popular Posts