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

 

szymon_dybczak
Esteemed 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

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