Can I store JSON in a Azure Key Vault

Multi tool use
Multi tool use












0















I have some JSON that I want to store in Azure Key Vault.



The data is not hierarchical just like this:



{
"type": "XXXXXX",
"project_id": "XXXXXX",
"private_key_id": "XXXXXXXX"
}


But I have 4 sets of JSON Data and there are about secrets in each one, so I am hoping that I do not have to break these out into separate keys, but if I must I will do this.










share|improve this question



























    0















    I have some JSON that I want to store in Azure Key Vault.



    The data is not hierarchical just like this:



    {
    "type": "XXXXXX",
    "project_id": "XXXXXX",
    "private_key_id": "XXXXXXXX"
    }


    But I have 4 sets of JSON Data and there are about secrets in each one, so I am hoping that I do not have to break these out into separate keys, but if I must I will do this.










    share|improve this question

























      0












      0








      0








      I have some JSON that I want to store in Azure Key Vault.



      The data is not hierarchical just like this:



      {
      "type": "XXXXXX",
      "project_id": "XXXXXX",
      "private_key_id": "XXXXXXXX"
      }


      But I have 4 sets of JSON Data and there are about secrets in each one, so I am hoping that I do not have to break these out into separate keys, but if I must I will do this.










      share|improve this question














      I have some JSON that I want to store in Azure Key Vault.



      The data is not hierarchical just like this:



      {
      "type": "XXXXXX",
      "project_id": "XXXXXX",
      "private_key_id": "XXXXXXXX"
      }


      But I have 4 sets of JSON Data and there are about secrets in each one, so I am hoping that I do not have to break these out into separate keys, but if I must I will do this.







      json azure azure-keyvault






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 2 at 15:50









      Bryan SchmiedelerBryan Schmiedeler

      1,20121338




      1,20121338
























          1 Answer
          1






          active

          oldest

          votes


















          1














          Consider this to be a valid statement to add a secret to an Azure Key Vault using the Azure CLI:



          az keyvault secret set --vault-name "<YourKeyVaultName>" --name "AppSecret" --value "MySecret", taken from Tutorial: Use Azure Key Vault with an Azure web app in .NET



          Building on this, I do not see any reason the value MySecret couldn't be a JSON string.



          Investigating a bit further, have a look at About keys, secrets, and certificates - Key Vault secrets:




          From a developer's perspective, Key Vault APIs accept and return secret values as strings. Internally, Key Vault stores and manages secrets as sequences of octets (8-bit bytes), with a maximum size of 25k bytes each.




          So as long as your JSON is under the 25k limit, you should be good to go.






          share|improve this answer
























          • Awesome. I will follow through on this.

            – Bryan Schmiedeler
            Jan 2 at 16:40











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54009278%2fcan-i-store-json-in-a-azure-key-vault%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          Consider this to be a valid statement to add a secret to an Azure Key Vault using the Azure CLI:



          az keyvault secret set --vault-name "<YourKeyVaultName>" --name "AppSecret" --value "MySecret", taken from Tutorial: Use Azure Key Vault with an Azure web app in .NET



          Building on this, I do not see any reason the value MySecret couldn't be a JSON string.



          Investigating a bit further, have a look at About keys, secrets, and certificates - Key Vault secrets:




          From a developer's perspective, Key Vault APIs accept and return secret values as strings. Internally, Key Vault stores and manages secrets as sequences of octets (8-bit bytes), with a maximum size of 25k bytes each.




          So as long as your JSON is under the 25k limit, you should be good to go.






          share|improve this answer
























          • Awesome. I will follow through on this.

            – Bryan Schmiedeler
            Jan 2 at 16:40
















          1














          Consider this to be a valid statement to add a secret to an Azure Key Vault using the Azure CLI:



          az keyvault secret set --vault-name "<YourKeyVaultName>" --name "AppSecret" --value "MySecret", taken from Tutorial: Use Azure Key Vault with an Azure web app in .NET



          Building on this, I do not see any reason the value MySecret couldn't be a JSON string.



          Investigating a bit further, have a look at About keys, secrets, and certificates - Key Vault secrets:




          From a developer's perspective, Key Vault APIs accept and return secret values as strings. Internally, Key Vault stores and manages secrets as sequences of octets (8-bit bytes), with a maximum size of 25k bytes each.




          So as long as your JSON is under the 25k limit, you should be good to go.






          share|improve this answer
























          • Awesome. I will follow through on this.

            – Bryan Schmiedeler
            Jan 2 at 16:40














          1












          1








          1







          Consider this to be a valid statement to add a secret to an Azure Key Vault using the Azure CLI:



          az keyvault secret set --vault-name "<YourKeyVaultName>" --name "AppSecret" --value "MySecret", taken from Tutorial: Use Azure Key Vault with an Azure web app in .NET



          Building on this, I do not see any reason the value MySecret couldn't be a JSON string.



          Investigating a bit further, have a look at About keys, secrets, and certificates - Key Vault secrets:




          From a developer's perspective, Key Vault APIs accept and return secret values as strings. Internally, Key Vault stores and manages secrets as sequences of octets (8-bit bytes), with a maximum size of 25k bytes each.




          So as long as your JSON is under the 25k limit, you should be good to go.






          share|improve this answer













          Consider this to be a valid statement to add a secret to an Azure Key Vault using the Azure CLI:



          az keyvault secret set --vault-name "<YourKeyVaultName>" --name "AppSecret" --value "MySecret", taken from Tutorial: Use Azure Key Vault with an Azure web app in .NET



          Building on this, I do not see any reason the value MySecret couldn't be a JSON string.



          Investigating a bit further, have a look at About keys, secrets, and certificates - Key Vault secrets:




          From a developer's perspective, Key Vault APIs accept and return secret values as strings. Internally, Key Vault stores and manages secrets as sequences of octets (8-bit bytes), with a maximum size of 25k bytes each.




          So as long as your JSON is under the 25k limit, you should be good to go.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 2 at 15:58









          rickvdboschrickvdbosch

          4,18121727




          4,18121727













          • Awesome. I will follow through on this.

            – Bryan Schmiedeler
            Jan 2 at 16:40



















          • Awesome. I will follow through on this.

            – Bryan Schmiedeler
            Jan 2 at 16:40

















          Awesome. I will follow through on this.

          – Bryan Schmiedeler
          Jan 2 at 16:40





          Awesome. I will follow through on this.

          – Bryan Schmiedeler
          Jan 2 at 16:40




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54009278%2fcan-i-store-json-in-a-azure-key-vault%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          4T,RSTlbhc 9V1UqFxyg LvIyn3i z4la65Uc79M 0f,EAe6w7VDN3,g0GhL,bw8cVXJ,lZmheF5Chl4L,GIHK6W
          8,3zlUw,Sf15 r7CpeKFnnMUJqGTY qzLXHhio1iFnpdwn,bNUVsNCuNv kuVV,yBDg4Jq DxjSroDUZvyH2

          Popular posts from this blog

          Monofisismo

          Angular Downloading a file using contenturl with Basic Authentication

          Olmecas