cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Error while Deploying Asset Bundle using Azure Devops

felix_immanuel
New Contributor III

Hi,

I'm trying to deploy the Asset Bundle using Azure DevOps, it is giving me this error

 

Step: databricks bundle validate -t dev

========================== Starting Command Output ===========================
2024-09-02T05:41:19.9113254Z Error: failed during request visitor: default auth: azure-cli: cannot get account info: exit status 1. Config: host=<Workspace_Link>, azure_tenant_id=<Tenant_ID>, client_secret=***, databricks_cli_path=C:\Windows\databricks.exe. Env: DATABRICKS_HOST, DATABRICKS_CLIENT_SECRET, DATABRICKS_CLI_PATH
2024-09-02T05:41:19.9113990Z

steps:
- bash: 'databricks bundle validate -t dev'
workingDirectory: '$(System.DefaultWorkingDirectory)/_Datalake-Databricks/databricks_asset_bundle'
displayName: 'validate databricks asset bundle'
env:
DATABRICKS_CLIENT_SECRET: $(DATABRICKS_CLIENT_SECRET)

Could you please help me with this.

Thanks

 

2 ACCEPTED SOLUTIONS

Accepted Solutions

szymon_dybczak
Contributor III

Hi @felix_immanuel ,

Look at below thread. There is some kind of issue when it comes to using azure CLI and DAB. But, there is workaround that seems to be working:

https://github.com/databricks/cli/issues/1722

View solution in original post

felix_immanuel
New Contributor III

This issue is been fixed now, there was a problem in the Client ID which was masked. I Remove the mask and tried it worked.

Thanks

View solution in original post

4 REPLIES 4

szymon_dybczak
Contributor III

Hi @felix_immanuel ,

Look at below thread. There is some kind of issue when it comes to using azure CLI and DAB. But, there is workaround that seems to be working:

https://github.com/databricks/cli/issues/1722

felix_immanuel
New Contributor III

This issue is been fixed now, there was a problem in the Client ID which was masked. I Remove the mask and tried it worked.

Thanks

Dear @felix_immanuel  I met a similar issue with the same error message. Could you kindly explain more about how did you fix it?

Much appreciate!

sampo
New Contributor II

I had similar error message but then using correct environment variables in the pipeline solved the problem. Especially setting DATABRICKS_HOST point to the account. 

More detailed description is here Databricks Asset Bundle OAuth Authentication in Azure DevOps 

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group