<?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 Re: Referring to Azure Keyvault secrets in spark config in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/referring-to-azure-keyvault-secrets-in-spark-config/m-p/21400#M14577</link>
    <description>&lt;P&gt;Hi @Martin Aronsson​,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a friendly follow-up. Do you still are looking for help or Kaniz's response help you to resolved your issue?&lt;/P&gt;</description>
    <pubDate>Fri, 29 Jul 2022 00:24:23 GMT</pubDate>
    <dc:creator>jose_gonzalez</dc:creator>
    <dc:date>2022-07-29T00:24:23Z</dc:date>
    <item>
      <title>Referring to Azure Keyvault secrets in spark config</title>
      <link>https://community.databricks.com/t5/data-engineering/referring-to-azure-keyvault-secrets-in-spark-config/m-p/21398#M14575</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In spark config for a cluster, it works well to refer to a Azure Keyvault secret in the "value" part of the name/value combo on a config row/setting.&lt;/P&gt;&lt;P&gt;For example, this works fine (I've removed the string that is our specific storage account name): &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;fs.azure.account.oauth2.client.secret.&amp;lt;storage_account_name&amp;gt;.dfs.core.windows.net {{secrets/secret_scope/secret_value}}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But is it possible to refer to a secret inside of the name-string of the config-row? More specifically, in the example above I would like to have the &amp;lt;storage_account_name&amp;gt; dynamic, using a secret (or any other way) so that it does not need to be hard-coded. Then we would have a more generic and re-usable spark config.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I actually tried this, but it doesn't seem to work:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;fs.azure.account.oauth2.client.secret.{{secrets/secret_scope/storage_account_name_secret}}.dfs.core.windows.net {{secrets/secret_scope/secret_value}}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Is there a way to achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 11:11:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/referring-to-azure-keyvault-secrets-in-spark-config/m-p/21398#M14575</guid>
      <dc:creator>Martin1</dc:creator>
      <dc:date>2022-05-05T11:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Referring to Azure Keyvault secrets in spark config</title>
      <link>https://community.databricks.com/t5/data-engineering/referring-to-azure-keyvault-secrets-in-spark-config/m-p/21400#M14577</link>
      <description>&lt;P&gt;Hi @Martin Aronsson​,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a friendly follow-up. Do you still are looking for help or Kaniz's response help you to resolved your issue?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 00:24:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/referring-to-azure-keyvault-secrets-in-spark-config/m-p/21400#M14577</guid>
      <dc:creator>jose_gonzalez</dc:creator>
      <dc:date>2022-07-29T00:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Referring to Azure Keyvault secrets in spark config</title>
      <link>https://community.databricks.com/t5/data-engineering/referring-to-azure-keyvault-secrets-in-spark-config/m-p/47460#M28165</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Is there any update on this issue please?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Databricks no longer recommend mounting external location, so the other way to access Azure storage is to use spark config as mentioned in this document -&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/storage/azure-storage#connect-to-azure-data-lake-storage-gen2-or-blob-storage-using-azure-credentials" target="_blank"&gt;https://learn.microsoft.com/en-us/azure/databricks/storage/azure-storage#connect-to-azure-data-lake-storage-gen2-or-blob-storage-using-azure-credentials&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Although the spark config works fine, but as&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/47948"&gt;@Martin1&lt;/a&gt;&amp;nbsp;mentioned, the value for storage-account and directory-id cannot be accessed from the secret because they are part of the property name.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way of accessing these from Databricks secret? as hardcoding these values doesn't seem right.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kalyani&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 10:31:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/referring-to-azure-keyvault-secrets-in-spark-config/m-p/47460#M28165</guid>
      <dc:creator>kp12</dc:creator>
      <dc:date>2023-10-02T10:31:23Z</dc:date>
    </item>
  </channel>
</rss>

