Category: Infrastructure, container

If you are new to Terraform I recommend you to go through my first article before continuing with this one. My plan in this article is to take you through what is Terraform state and how to manage this state with Azure.

Then each time you do some changes to your configuration and try to apply it to your environment Terraform will use this state file to evaluate your configuration and identify the changes to be deployed.

It will allow you to work in a team by storing the state remotely and also you can make sure that sensitive information about your infrastructure is secured.

When you try to write to the state Terraform backend will automatically lock your state which will prevent others from trying to update the infrastructure at the same time.

Related Articles