Terraform error deploying Databricks Asset Bundle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2025 10:22 AM
Hi all 👋,
I am deploying a very simple DAB from an Azure DevOps Pipeline with an self hosted agent, there is no error messages but in the Databricks workspace there is nothing deployed and the files of the bundle are uploaded in the workspace. 🤔
When I put the --debug parameter in the deploy I get this error message:
"Error: terraform : fork/exec C:\Users\<username>\agent\<path>\<Bundlename>\.databricks\bundle\dev\bin\terraform.exe: The process cannot access the file because it is being used by another process."
Anyone knows how to proceed?
I have tried to generate a new example bundle, stop remaining processes in the agent, authenticate with other user, change directories of root path, delete the directories, deploy a new Databricks workspace 😂, etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2025 05:09 AM
Hi @armandovl ,
Try pointing your Databricks bundle to a system-installed Terraform binary. In your bundle config file, configure it to use the system’s Terraform instead of the bundled one.
Also, ensure the Terraform binary is available in the agent’s PATH.
Lastly, make sure there are no leftover Terraform processes running, and clean the build workspace between deployments. This typically resolves the issue you're encountering.