Skip to content
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

[ISSUE] Warning issued when login with Azure CLI #853

Open
kvedes opened this issue Jan 8, 2025 · 0 comments
Open

[ISSUE] Warning issued when login with Azure CLI #853

kvedes opened this issue Jan 8, 2025 · 0 comments

Comments

@kvedes
Copy link

kvedes commented Jan 8, 2025

Description
A warning is issued if logging in with using Azure CLI when supplying tenant and workspace id

Reproduction

from databricks.sdk import WorkspaceClient
import logging

logging.basicConfig(level=logging.DEBUG)
workspace_client = WorkspaceClient(
    host="https://adb-x.azuredatabricks.net",
    azure_workspace_resource_id="/subscriptions/SUB_ID/resourceGroups/RG/providers/Microsoft.Databricks/workspaces/WORKSPACE",
    azure_tenant_id="TENANT_ID",
)

Expected behavior
No warning emitted

Is it a regression?
It worked in 0.19.0

Debug Logs

DEBUG:databricks.sdk:Attempting to configure auth: pat
DEBUG:databricks.sdk:Attempting to configure auth: basic
DEBUG:databricks.sdk:Attempting to configure auth: metadata-service
DEBUG:databricks.sdk:Attempting to configure auth: oauth-m2m
DEBUG:databricks.sdk:Attempting to configure auth: azure-client-secret
DEBUG:databricks.sdk:Attempting to configure auth: github-oidc-azure
DEBUG:databricks.sdk:Attempting to configure auth: azure-cli
DEBUG:root:Running command: az account show --output json
DEBUG:root:Running command: az account get-access-token --resource RES_ID --output json --subscription SUB_ID --tenant TENANT_ID
WARNING:databricks.sdk:Failed to get token for subscription. Using resource only token.
DEBUG:root:Running command: az account show --output json
DEBUG:root:Running command: az account get-access-token --resource RES_ID --output json --tenant TENANT_ID
INFO:databricks.sdk:Using Azure CLI authentication with AAD tokens

Other Information

  • OS: Ubuntu WSL
  • Version: 0.40.0

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant