cancel
Showing results for 
Search instead for 
Did you mean: 
Get Started Discussions
Start your journey with Databricks by joining discussions on getting started guides, tutorials, and introductory topics. Connect with beginners and experts alike to kickstart your Databricks experience.
cancel
Showing results for 
Search instead for 
Did you mean: 

Terraform error deploying Databricks Asset Bundle

armandovl
New Contributor

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.

1 REPLY 1

SP_6721
Contributor III

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.

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now