You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Currently the WorkspaceClient looks up all possible environment variables that can be used for authentication (e.g. Databricks token or Azure credentials) and throws an error if more than one authentication method is used:
raiseValueError(f'validate: more than one authorization method configured: {names}')
.
This means I need to use the following hack to ge try code running which is inconvenient:
del os.environ["ARM_SUBSCRIPTION_ID"]
del os.environ["ARM_TENANT_ID"]
del os.environ["ARM_CLIENT_ID"]
del os.environ["ARM_CLIENT_SECRET"]
Reproduction
ARM_SUBSCRIPTION_ID, ARM_TENANT_ID, ARM_CLIENT_ID, ARM_CLIENT_SECRET, DATABRICKS_HOST and DATABRICKS_TOKEN environment variables must be set to reproduce the example.
import os
from databricks.sdk import WorkspaceClient
w = WorkspaceClient(host=os.environ["DATABRICKS_HOST"], token=os.environ["DATABRICKS_TOKEN"])
Expected behavior
I would expect to be able to authenticate with more than one authentication method as I need both Azure and Databricks credentials in my environment.
Is it a regression?
I don't know. This for version 0.32.3.
Debug Logs
The SDK logs helpful debugging information when debug logging is enabled. Set the log level to debug by adding logging.basicConfig(level=logging.DEBUG) to your program, and include the logs here.
Other Information
OS: Ubuntu
Additional context
N/A
The text was updated successfully, but these errors were encountered:
Description
Currently the WorkspaceClient looks up all possible environment variables that can be used for authentication (e.g. Databricks token or Azure credentials) and throws an error if more than one authentication method is used:
databricks-sdk-py/databricks/sdk/config.py
Line 469 in 79b096f
This means I need to use the following hack to ge try code running which is inconvenient:
Reproduction
ARM_SUBSCRIPTION_ID, ARM_TENANT_ID, ARM_CLIENT_ID, ARM_CLIENT_SECRET, DATABRICKS_HOST and DATABRICKS_TOKEN environment variables must be set to reproduce the example.
Expected behavior
I would expect to be able to authenticate with more than one authentication method as I need both Azure and Databricks credentials in my environment.
Is it a regression?
I don't know. This for version 0.32.3.
Debug Logs
The SDK logs helpful debugging information when debug logging is enabled. Set the log level to debug by adding
logging.basicConfig(level=logging.DEBUG)
to your program, and include the logs here.Other Information
Additional context
N/A
The text was updated successfully, but these errors were encountered: