skip to content
Alvin Lucillo

State last modified in az

/ 1 min read

💻 Tech

If you notice that the state files’ Last Modified field in Azure Blob Storage is being updated when you perform terraform plan, it’s expected because Terraform performs locking of the state so no other process can update it, and releasing it afterwards. If you try to add the -lock=false argument to the plan command, it will not perform any locking (or update) to the state, so the Last Modified field isn’t updated. But note that you’ll lose the protection when lock is disabled.