diff --git a/databricks/sdk/core.py b/databricks/sdk/core.py index 84b700835..6e0d8c1cd 100644 --- a/databricks/sdk/core.py +++ b/databricks/sdk/core.py @@ -280,7 +280,8 @@ def for_resource(cfg: 'Config', resource: str) -> 'AzureCliTokenSource': return token except OSError: logger.warning("Failed to get token for subscription. Using resource only token.") - else: + elif cfg.effective_azure_login_app_id != ARM_DATABRICKS_RESOURCE_ID: + # the proper fix has to be done on Databricks Platform side logger.warning( "azure_workspace_resource_id field not provided. " + "It is recommended to specify this field in the Databricks configuration to avoid authentication errors."