<?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: Getting secret from Key Vault of previous version in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/getting-secret-from-key-vault-of-previous-version/m-p/49921#M1648</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I tried executing following code:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;SecreteScopeName = 'SecretScope'
KeyName = 'Key123'
version = '123456789abcdefghijklmn'
val = dbutils.secrets.get(SecreteScopeName, key=KeyName + version)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;It is giving me the below error:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;STRONG&gt;IllegalArgumentException:&lt;/STRONG&gt; Secret does &lt;/SPAN&gt;&lt;SPAN&gt;not&lt;/SPAN&gt;&lt;SPAN&gt; exist &lt;/SPAN&gt;&lt;SPAN&gt;with&lt;/SPAN&gt;&lt;SPAN&gt; scope: SecretScope &lt;/SPAN&gt;&lt;SPAN&gt;and&lt;/SPAN&gt;&lt;SPAN&gt; key: Key123123456789abcdefghijklmn&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Looks like after appending the version to secret name, dbutils command is looking for this new key which is combination of name and version.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 26 Oct 2023 12:28:26 GMT</pubDate>
    <dc:creator>Data_Analytics1</dc:creator>
    <dc:date>2023-10-26T12:28:26Z</dc:date>
    <item>
      <title>Getting secret from Key Vault of previous version</title>
      <link>https://community.databricks.com/t5/get-started-discussions/getting-secret-from-key-vault-of-previous-version/m-p/49844#M1640</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have added secrets in Azure Key Vault and also updated it few times. I need to access current as well as previous version secret in a data pipeline.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;dbutils.secrete.get(KeyName, SecretScopeName)&lt;/LI-CODE&gt;&lt;P&gt;This gives me the current version of secret.&lt;/P&gt;&lt;P&gt;How can I access previous version secret using dbutils command?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 10:31:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/getting-secret-from-key-vault-of-previous-version/m-p/49844#M1640</guid>
      <dc:creator>Data_Analytics1</dc:creator>
      <dc:date>2023-10-25T10:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Getting secret from Key Vault of previous version</title>
      <link>https://community.databricks.com/t5/get-started-discussions/getting-secret-from-key-vault-of-previous-version/m-p/49921#M1648</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I tried executing following code:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;SecreteScopeName = 'SecretScope'
KeyName = 'Key123'
version = '123456789abcdefghijklmn'
val = dbutils.secrets.get(SecreteScopeName, key=KeyName + version)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;It is giving me the below error:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;STRONG&gt;IllegalArgumentException:&lt;/STRONG&gt; Secret does &lt;/SPAN&gt;&lt;SPAN&gt;not&lt;/SPAN&gt;&lt;SPAN&gt; exist &lt;/SPAN&gt;&lt;SPAN&gt;with&lt;/SPAN&gt;&lt;SPAN&gt; scope: SecretScope &lt;/SPAN&gt;&lt;SPAN&gt;and&lt;/SPAN&gt;&lt;SPAN&gt; key: Key123123456789abcdefghijklmn&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Looks like after appending the version to secret name, dbutils command is looking for this new key which is combination of name and version.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 26 Oct 2023 12:28:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/getting-secret-from-key-vault-of-previous-version/m-p/49921#M1648</guid>
      <dc:creator>Data_Analytics1</dc:creator>
      <dc:date>2023-10-26T12:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Getting secret from Key Vault of previous version</title>
      <link>https://community.databricks.com/t5/get-started-discussions/getting-secret-from-key-vault-of-previous-version/m-p/73767#M3119</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;,&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/79360"&gt;@Data_Analytics1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has a solution this problem been found in the meantime?&lt;/P&gt;&lt;P&gt;I need to access a secret with a SPECIFIC VERSION from Azure Key Vault via Databricks Secret Scope. Hence while retrieving the secret I need to pass BOTH AKV secret name AND AKV secret version. I want to use a function such as&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;dbutils.secrets.get(scope="my-scope", key="my-key")&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;Concatenating name and version and passing it into the function does not work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 09:59:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/getting-secret-from-key-vault-of-previous-version/m-p/73767#M3119</guid>
      <dc:creator>johnb1</dc:creator>
      <dc:date>2024-06-13T09:59:31Z</dc:date>
    </item>
  </channel>
</rss>

