How to use a dynamic connection string with blob binding in Azure function












0















I know the azure function support dynamic binding with IBinder, with it I can create a BlobAttribut with dynamic path, but the connection property of this attribut always be processed as the name of configure item.
How can I specify a connnection string directly (an SAS token) to the BlobAttribute in the run time?



Thanks










share|improve this question



























    0















    I know the azure function support dynamic binding with IBinder, with it I can create a BlobAttribut with dynamic path, but the connection property of this attribut always be processed as the name of configure item.
    How can I specify a connnection string directly (an SAS token) to the BlobAttribute in the run time?



    Thanks










    share|improve this question

























      0












      0








      0








      I know the azure function support dynamic binding with IBinder, with it I can create a BlobAttribut with dynamic path, but the connection property of this attribut always be processed as the name of configure item.
      How can I specify a connnection string directly (an SAS token) to the BlobAttribute in the run time?



      Thanks










      share|improve this question














      I know the azure function support dynamic binding with IBinder, with it I can create a BlobAttribut with dynamic path, but the connection property of this attribut always be processed as the name of configure item.
      How can I specify a connnection string directly (an SAS token) to the BlobAttribute in the run time?



      Thanks







      azure-functions






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 15 '18 at 9:40









      frankfrank

      5661615




      5661615
























          1 Answer
          1






          active

          oldest

          votes


















          2














          Unfortunately, this is not supported. To begin with, you cannot use a SAS token with a blob binding (you need to provide a connection string with full permissions, see GitHub issues #199 and #468).



          You won't get the goodness of bindings, but you can directly using the Azure Storage SDK instead.






          share|improve this answer
























          • Thanks, what's the advantage that using binding over the Azure storage SDK? Or I jsut want to learn that Azure function why provide the storage bidning when we can access storage with Azure Storage SDK?

            – frank
            Nov 16 '18 at 4:04








          • 1





            Trigger bindings offer unique functionality that referencing an SDK doesn't have (although you could argue that an Event Grid trigger binding is sufficient for most trigger integration points). Input/output bindings are mainly used for easy integration with other (Azure) services, which are very common scenarios. Bindings opt you in to having the azure functions runtime manage the SDK for you.

            – Marie Hoeger
            Nov 17 '18 at 1:07











          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%2f53316449%2fhow-to-use-a-dynamic-connection-string-with-blob-binding-in-azure-function%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









          2














          Unfortunately, this is not supported. To begin with, you cannot use a SAS token with a blob binding (you need to provide a connection string with full permissions, see GitHub issues #199 and #468).



          You won't get the goodness of bindings, but you can directly using the Azure Storage SDK instead.






          share|improve this answer
























          • Thanks, what's the advantage that using binding over the Azure storage SDK? Or I jsut want to learn that Azure function why provide the storage bidning when we can access storage with Azure Storage SDK?

            – frank
            Nov 16 '18 at 4:04








          • 1





            Trigger bindings offer unique functionality that referencing an SDK doesn't have (although you could argue that an Event Grid trigger binding is sufficient for most trigger integration points). Input/output bindings are mainly used for easy integration with other (Azure) services, which are very common scenarios. Bindings opt you in to having the azure functions runtime manage the SDK for you.

            – Marie Hoeger
            Nov 17 '18 at 1:07
















          2














          Unfortunately, this is not supported. To begin with, you cannot use a SAS token with a blob binding (you need to provide a connection string with full permissions, see GitHub issues #199 and #468).



          You won't get the goodness of bindings, but you can directly using the Azure Storage SDK instead.






          share|improve this answer
























          • Thanks, what's the advantage that using binding over the Azure storage SDK? Or I jsut want to learn that Azure function why provide the storage bidning when we can access storage with Azure Storage SDK?

            – frank
            Nov 16 '18 at 4:04








          • 1





            Trigger bindings offer unique functionality that referencing an SDK doesn't have (although you could argue that an Event Grid trigger binding is sufficient for most trigger integration points). Input/output bindings are mainly used for easy integration with other (Azure) services, which are very common scenarios. Bindings opt you in to having the azure functions runtime manage the SDK for you.

            – Marie Hoeger
            Nov 17 '18 at 1:07














          2












          2








          2







          Unfortunately, this is not supported. To begin with, you cannot use a SAS token with a blob binding (you need to provide a connection string with full permissions, see GitHub issues #199 and #468).



          You won't get the goodness of bindings, but you can directly using the Azure Storage SDK instead.






          share|improve this answer













          Unfortunately, this is not supported. To begin with, you cannot use a SAS token with a blob binding (you need to provide a connection string with full permissions, see GitHub issues #199 and #468).



          You won't get the goodness of bindings, but you can directly using the Azure Storage SDK instead.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 16 '18 at 1:02









          Marie HoegerMarie Hoeger

          59117




          59117













          • Thanks, what's the advantage that using binding over the Azure storage SDK? Or I jsut want to learn that Azure function why provide the storage bidning when we can access storage with Azure Storage SDK?

            – frank
            Nov 16 '18 at 4:04








          • 1





            Trigger bindings offer unique functionality that referencing an SDK doesn't have (although you could argue that an Event Grid trigger binding is sufficient for most trigger integration points). Input/output bindings are mainly used for easy integration with other (Azure) services, which are very common scenarios. Bindings opt you in to having the azure functions runtime manage the SDK for you.

            – Marie Hoeger
            Nov 17 '18 at 1:07



















          • Thanks, what's the advantage that using binding over the Azure storage SDK? Or I jsut want to learn that Azure function why provide the storage bidning when we can access storage with Azure Storage SDK?

            – frank
            Nov 16 '18 at 4:04








          • 1





            Trigger bindings offer unique functionality that referencing an SDK doesn't have (although you could argue that an Event Grid trigger binding is sufficient for most trigger integration points). Input/output bindings are mainly used for easy integration with other (Azure) services, which are very common scenarios. Bindings opt you in to having the azure functions runtime manage the SDK for you.

            – Marie Hoeger
            Nov 17 '18 at 1:07

















          Thanks, what's the advantage that using binding over the Azure storage SDK? Or I jsut want to learn that Azure function why provide the storage bidning when we can access storage with Azure Storage SDK?

          – frank
          Nov 16 '18 at 4:04







          Thanks, what's the advantage that using binding over the Azure storage SDK? Or I jsut want to learn that Azure function why provide the storage bidning when we can access storage with Azure Storage SDK?

          – frank
          Nov 16 '18 at 4:04






          1




          1





          Trigger bindings offer unique functionality that referencing an SDK doesn't have (although you could argue that an Event Grid trigger binding is sufficient for most trigger integration points). Input/output bindings are mainly used for easy integration with other (Azure) services, which are very common scenarios. Bindings opt you in to having the azure functions runtime manage the SDK for you.

          – Marie Hoeger
          Nov 17 '18 at 1:07





          Trigger bindings offer unique functionality that referencing an SDK doesn't have (although you could argue that an Event Grid trigger binding is sufficient for most trigger integration points). Input/output bindings are mainly used for easy integration with other (Azure) services, which are very common scenarios. Bindings opt you in to having the azure functions runtime manage the SDK for you.

          – Marie Hoeger
          Nov 17 '18 at 1:07




















          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%2f53316449%2fhow-to-use-a-dynamic-connection-string-with-blob-binding-in-azure-function%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







          Popular posts from this blog

          Bressuire

          Vorschmack

          Quarantine