-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Databricks CLI authenticates with azure-cli, but bundle deployment does not #1722
Comments
Chiming in as I ran into the same thing a few weeks ago. The culprit is the Azure CLI configuration file location. We currently don't forward the - task: AzureCLI@2
inputs:
# ...
useGlobalConfig: true
# ... |
@pietern That indeed works for me too, thanks! For reference, here is my full working configuration:
|
This ensures that the CLI and Terraform can both use an Azure CLI session configured under a non-standard path. This is the default behavior on Azure DevOps when using the AzureCLI@2 task. Fixes #1722.
## Changes This ensures that the CLI and Terraform can both use an Azure CLI session configured under a non-standard path. This is the default behavior on Azure DevOps when using the AzureCLI@2 task. Fixes #1722. ## Tests Unit test.
Hello, @Pim-Mostert, In your:
Did you add the host, client_id and client_secret of the Service Principal? |
@pabtorres I only added the host. The necessary credentials are injected under the hood by the |
This issue still persists. PR #1734 passes along the wrong variable. It should be The suggested solution ( |
Thanks for flagging. I don't know how I got this wrong... There is no mention of |
## Changes Solves #1722 (current solution passes wrong variable) ## Tests None, this is a simple find-and-replace on a previous PR. Proof that this is the correct [variable](https://learn.microsoft.com/en-us/cli/azure/azure-cli-configuration#cli-configuration-file). This just passes the variable along to the Terraform environment, which [should](hashicorp/terraform#25416) be picked up by Terraform. Co-authored-by: Rik Jansen <[email protected]>
Describe the issue
I want to deploy a Databricks Asset Bundle from an Azure DevOps Pipeline using databricks. While authentication seems to work fine when using cli commands (such as
databricks experiments list-experiments
), authentication fails for bundle deploymentdatabricks bundle deploy
.In the pipeline I'm making use of the
AzureCLI
task, which enables databricks CLI to make use ofazure-cli
type authentication.As mentioned in databricks/databricks-sdk-go#1025 (comment) the issue appears to be:
Configuration
Steps to reproduce the behavior
Expected Behavior
The deployment of the asset bundle should succeed.
Actual Behavior
Note that the listing of experiments works fine:
OS and CLI version
Output by the Azure pipeline:
Databricks CLI:
v0.227.0
OS: Ubuntu (Microsoft-hosted agent, latest version)
Is this a regression?
I don't know, I'm new to Databricks.
Debug Logs
Output
databricks experiments list-experiments --log-level TRACE
:experiment-list.txt
Output
databricks bundle deploy --log-level=debug --target dev
:bundle-deploy.txt
The text was updated successfully, but these errors were encountered: