<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Account client not able to get workspace client in Warehousing &amp; Analytics</title>
    <link>https://community.databricks.com/t5/warehousing-analytics/account-client-not-able-to-get-workspace-client/m-p/99319#M1698</link>
    <description>&lt;P&gt;So I did U2M authentication for&amp;nbsp;&lt;A class="" href="https://docs.databricks.com/api/account" target="_blank" rel="noopener"&gt;account-level&lt;/A&gt;&amp;nbsp;operations -&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;EM&gt;databricks auth login --host &amp;lt;account-login-url&amp;gt; --account-id &amp;lt;account-id&amp;gt;&lt;/EM&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;then I tried to run code-&lt;/P&gt;&lt;DIV&gt;&lt;U&gt;&lt;EM&gt;workspaces = account_client.workspaces.list()&lt;/EM&gt;&lt;/U&gt;&lt;BR /&gt;&lt;U&gt;&lt;EM&gt;workspace_obj=account_client.get_workspace_client(workspaces[0])&lt;/EM&gt;&lt;/U&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;I got error saying -&amp;nbsp;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;ValueError: databricks-cli auth: cannot configure default credentials, please check &lt;A href="https://docs.databricks.com/en/dev-tools/auth.html#databricks-client-unified-authentication" target="_blank" rel="noopener"&gt;https://docs.databricks.com/en/dev-tools/auth.html#databricks-client-unified-authentication&lt;/A&gt; to configure credentials for your preferred authentication method.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;I am not sure what's going wrong here&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 19 Nov 2024 11:31:09 GMT</pubDate>
    <dc:creator>vaishalisai</dc:creator>
    <dc:date>2024-11-19T11:31:09Z</dc:date>
    <item>
      <title>Account client not able to get workspace client</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/account-client-not-able-to-get-workspace-client/m-p/99319#M1698</link>
      <description>&lt;P&gt;So I did U2M authentication for&amp;nbsp;&lt;A class="" href="https://docs.databricks.com/api/account" target="_blank" rel="noopener"&gt;account-level&lt;/A&gt;&amp;nbsp;operations -&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;EM&gt;databricks auth login --host &amp;lt;account-login-url&amp;gt; --account-id &amp;lt;account-id&amp;gt;&lt;/EM&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;then I tried to run code-&lt;/P&gt;&lt;DIV&gt;&lt;U&gt;&lt;EM&gt;workspaces = account_client.workspaces.list()&lt;/EM&gt;&lt;/U&gt;&lt;BR /&gt;&lt;U&gt;&lt;EM&gt;workspace_obj=account_client.get_workspace_client(workspaces[0])&lt;/EM&gt;&lt;/U&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;I got error saying -&amp;nbsp;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;ValueError: databricks-cli auth: cannot configure default credentials, please check &lt;A href="https://docs.databricks.com/en/dev-tools/auth.html#databricks-client-unified-authentication" target="_blank" rel="noopener"&gt;https://docs.databricks.com/en/dev-tools/auth.html#databricks-client-unified-authentication&lt;/A&gt; to configure credentials for your preferred authentication method.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;I am not sure what's going wrong here&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 19 Nov 2024 11:31:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/account-client-not-able-to-get-workspace-client/m-p/99319#M1698</guid>
      <dc:creator>vaishalisai</dc:creator>
      <dc:date>2024-11-19T11:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Account client not able to get workspace client</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/account-client-not-able-to-get-workspace-client/m-p/99342#M1699</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/132970"&gt;@vaishalisai&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Could you please run below validations?&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Run this command to validate:&amp;nbsp;&lt;/STRONG&gt;&lt;EM&gt;databricks auth describe&lt;/EM&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;STRONG&gt;Check the Databricks Configuration File&lt;/STRONG&gt;: Ensure that your .databrickscfg file is correctly configured. This file should be located in your home directory and should contain the necessary credentials. The file should look something like this: [DEFAULT] host = https://&amp;lt;your-databricks-instance&amp;gt; token = &amp;lt;your-personal-access-token&amp;gt;&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;STRONG&gt;Verify Environment Variables&lt;/STRONG&gt;: Make sure that the environment variables DATABRICKS_HOST and DATABRICKS_TOKEN are set correctly. These variables should point to your Databricks instance and contain your access token, respectively.&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;STRONG&gt;Unified Authentication&lt;/STRONG&gt;: According to the documentation, you should ensure that you have configured the unified authentication method correctly. You can refer to the detailed steps in the Databricks documentation here: &lt;A href="https://docs.databricks.com/en/dev-tools/auth.html#databricks-client-unified-authentication" target="_blank"&gt;&lt;SPAN class="s1"&gt;Databricks Client Unified Authentication&lt;/SPAN&gt;&lt;/A&gt;.&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;STRONG&gt;OAuth for Users (U2M)&lt;/STRONG&gt;: Since you mentioned using U2M (User-to-Machine) authentication, ensure that you have followed the steps to generate an OAuth code verifier and challenge pair if required. This is necessary for the OAuth authentication process.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2024 14:06:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/account-client-not-able-to-get-workspace-client/m-p/99342#M1699</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2024-11-19T14:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: Account client not able to get workspace client</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/account-client-not-able-to-get-workspace-client/m-p/99460#M1704</link>
      <description>&lt;P&gt;I am doing using a service principal so my .databrickscfg has -&lt;/P&gt;&lt;DIV&gt;&lt;EM&gt;[databricks-demo]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;client_id = -----&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;client_secret = ----&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;host = &lt;A href="https://accounts.cloud.databricks.com/" target="_blank"&gt;https://accounts.cloud.databricks.com/&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;account_id = ----&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 06:42:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/account-client-not-able-to-get-workspace-client/m-p/99460#M1704</guid>
      <dc:creator>vaishalisai</dc:creator>
      <dc:date>2024-11-20T06:42:08Z</dc:date>
    </item>
  </channel>
</rss>

