Blob Metadata Terraformlockid Was Empty -
After removing the empty metadata, run:
Resolving the "Blob metadata TerraformLockID was empty" Error: A Comprehensive Guide blob metadata terraformlockid was empty
# Remove only the terraformlockid metadata az storage blob metadata update \ --account-name <storage-account-name> \ --container-name <container-name> \ --name <path-to-tfstate> \ --metadata "terraformlockid=" \ --subscription <subscription-id> After removing the empty metadata, run: Resolving the
Terraform utilizes a state locking mechanism to prevent concurrent operations (e.g., two users running terraform apply simultaneously) which could corrupt the state file. When a lock is acquired, Terraform writes a unique identifier to the storage backend. The "Blob metadata TerraformLockID was empty" error can
Only if you are no Terraform process is using the state and the above fix doesn’t work, you can force-unlock.
The "Blob metadata TerraformLockID was empty" error can have significant implications on the infrastructure deployment process. If left unresolved, this error can cause:
