<?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 Error with databricks_storage_credential resource in Data Governance</title>
    <link>https://community.databricks.com/t5/data-governance/error-with-databricks-storage-credential-resource/m-p/81498#M1986</link>
    <description>&lt;P&gt;Hello all, I having an issue which after trying different things, still not able to find the root cause of the problem.&lt;BR /&gt;I have my Teraform databrick provider configure like this:&lt;BR /&gt;&lt;BR /&gt;Databricks provider version=&amp;nbsp;v1.49.1&lt;BR /&gt;&lt;BR /&gt;provider "databricks" {&lt;BR /&gt;host = module.databricks.databricks.workspace_url&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;and then my "databricks_storage_credential" resource looks like this:&lt;BR /&gt;&lt;BR /&gt;resource "databricks_storage_credential" "external" {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; name = azurerm_databricks_access_connector.unity.name&lt;BR /&gt;&amp;nbsp; &amp;nbsp; azure_managed_identity {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; access_connector_id = azurerm_databricks_access_connector.unity.id&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&amp;nbsp; &amp;nbsp;isolation_mode = "ISOLATION_MODE_ISOLATED"&lt;BR /&gt;&amp;nbsp; &amp;nbsp;comment = "Managed by TF"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;I have no problem with provisioning or destruction. I can even deploy later a cluster within Databricks workspace, but on certain updates, like tag update or adding a new RG, I'm getting below error:&lt;/P&gt;&lt;P&gt;Error: cannot read storage credential: failed during request visitor: default 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"&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. Config: azure_client_secret=***, azure_client_id=&amp;lt;CLIENT_ID&amp;gt;, azure_tenant_id=&amp;lt;TENANT_ID&amp;gt;. Env: ARM_CLIENT_SECRET, ARM_CLIENT_ID, ARM_TENANT_ID&lt;BR /&gt;│&lt;BR /&gt;│ with module.databricks.databricks_storage_credential.external,&lt;BR /&gt;│ on modules/terraform-azurerm-databricks-workspace/main.tf line 191, in resource "databricks_storage_credential" "external":&lt;BR /&gt;│ 191: resource "databricks_storage_credential" "external" {&lt;BR /&gt;&lt;BR /&gt;Looks to me that I'm missing some read permission somewhere. Any advise? Any help will be more than welcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;Thanks in advance...&lt;/P&gt;</description>
    <pubDate>Thu, 01 Aug 2024 13:27:33 GMT</pubDate>
    <dc:creator>JustLeo</dc:creator>
    <dc:date>2024-08-01T13:27:33Z</dc:date>
    <item>
      <title>Error with databricks_storage_credential resource</title>
      <link>https://community.databricks.com/t5/data-governance/error-with-databricks-storage-credential-resource/m-p/81498#M1986</link>
      <description>&lt;P&gt;Hello all, I having an issue which after trying different things, still not able to find the root cause of the problem.&lt;BR /&gt;I have my Teraform databrick provider configure like this:&lt;BR /&gt;&lt;BR /&gt;Databricks provider version=&amp;nbsp;v1.49.1&lt;BR /&gt;&lt;BR /&gt;provider "databricks" {&lt;BR /&gt;host = module.databricks.databricks.workspace_url&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;and then my "databricks_storage_credential" resource looks like this:&lt;BR /&gt;&lt;BR /&gt;resource "databricks_storage_credential" "external" {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; name = azurerm_databricks_access_connector.unity.name&lt;BR /&gt;&amp;nbsp; &amp;nbsp; azure_managed_identity {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; access_connector_id = azurerm_databricks_access_connector.unity.id&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&amp;nbsp; &amp;nbsp;isolation_mode = "ISOLATION_MODE_ISOLATED"&lt;BR /&gt;&amp;nbsp; &amp;nbsp;comment = "Managed by TF"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;I have no problem with provisioning or destruction. I can even deploy later a cluster within Databricks workspace, but on certain updates, like tag update or adding a new RG, I'm getting below error:&lt;/P&gt;&lt;P&gt;Error: cannot read storage credential: failed during request visitor: default 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"&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. Config: azure_client_secret=***, azure_client_id=&amp;lt;CLIENT_ID&amp;gt;, azure_tenant_id=&amp;lt;TENANT_ID&amp;gt;. Env: ARM_CLIENT_SECRET, ARM_CLIENT_ID, ARM_TENANT_ID&lt;BR /&gt;│&lt;BR /&gt;│ with module.databricks.databricks_storage_credential.external,&lt;BR /&gt;│ on modules/terraform-azurerm-databricks-workspace/main.tf line 191, in resource "databricks_storage_credential" "external":&lt;BR /&gt;│ 191: resource "databricks_storage_credential" "external" {&lt;BR /&gt;&lt;BR /&gt;Looks to me that I'm missing some read permission somewhere. Any advise? Any help will be more than welcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;Thanks in advance...&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 13:27:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/error-with-databricks-storage-credential-resource/m-p/81498#M1986</guid>
      <dc:creator>JustLeo</dc:creator>
      <dc:date>2024-08-01T13:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error with databricks_storage_credential resource</title>
      <link>https://community.databricks.com/t5/data-governance/error-with-databricks-storage-credential-resource/m-p/82256#M1998</link>
      <description>&lt;P&gt;Solution to this issue:&lt;BR /&gt;Instead of configuring the provider like this:&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt;provider "databricks" {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;host = module.databricks.databricks.workspace_url&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;first save the value in a local and use it in the provider, like this:&lt;BR /&gt;locals {&lt;BR /&gt;&amp;nbsp; &amp;nbsp;my_url =&amp;nbsp;module.databricks.databricks.workspace_url&lt;BR /&gt;}&lt;BR /&gt;provider "databricks" {&lt;BR /&gt;&amp;nbsp; &amp;nbsp;host = local.my_url&lt;BR /&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 15:13:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/error-with-databricks-storage-credential-resource/m-p/82256#M1998</guid>
      <dc:creator>JustLeo</dc:creator>
      <dc:date>2024-08-07T15:13:25Z</dc:date>
    </item>
  </channel>
</rss>

