Blob Metadata Terraformlockid Was Empty < 2025 >

Blob Metadata Terraformlockid Was Empty < 2025 >

First, find the current (empty) lock ID. The error message may show it, or you can inspect metadata via Azure CLI:

If you manage Azure infrastructure with Terraform, you might have encountered a frustrating error when running terraform plan or terraform apply : blob metadata terraformlockid was empty

az storage blob metadata show \ --account-name <storage-account-name> \ --container-name <container-name> \ --name <path-to-tfstate> Then force-unlock: First, find the current (empty) lock ID