What is the best way to import Microsoft.WindowsAzure.Storage.DataMovement; in Azure Function Apps written in...












1















I am unable to run my Azure function on the cloud when I publish it!



Because of which I am writing a new function app in the portal with C#, I am unable to import the needed packages specifically these two.



using Microsoft.WindowsAzure.Storage.Blob;
using Microsoft.WindowsAzure.Storage.DataMovement;


What is the best way to import them?



Why do function apps work fine locally and not when published to azure, will this issue ever be solved, even a simple straight forward blob triggered function app created with the default template does not seem to work properly when published to the portal?










share|improve this question





























    1















    I am unable to run my Azure function on the cloud when I publish it!



    Because of which I am writing a new function app in the portal with C#, I am unable to import the needed packages specifically these two.



    using Microsoft.WindowsAzure.Storage.Blob;
    using Microsoft.WindowsAzure.Storage.DataMovement;


    What is the best way to import them?



    Why do function apps work fine locally and not when published to azure, will this issue ever be solved, even a simple straight forward blob triggered function app created with the default template does not seem to work properly when published to the portal?










    share|improve this question



























      1












      1








      1








      I am unable to run my Azure function on the cloud when I publish it!



      Because of which I am writing a new function app in the portal with C#, I am unable to import the needed packages specifically these two.



      using Microsoft.WindowsAzure.Storage.Blob;
      using Microsoft.WindowsAzure.Storage.DataMovement;


      What is the best way to import them?



      Why do function apps work fine locally and not when published to azure, will this issue ever be solved, even a simple straight forward blob triggered function app created with the default template does not seem to work properly when published to the portal?










      share|improve this question
















      I am unable to run my Azure function on the cloud when I publish it!



      Because of which I am writing a new function app in the portal with C#, I am unable to import the needed packages specifically these two.



      using Microsoft.WindowsAzure.Storage.Blob;
      using Microsoft.WindowsAzure.Storage.DataMovement;


      What is the best way to import them?



      Why do function apps work fine locally and not when published to azure, will this issue ever be solved, even a simple straight forward blob triggered function app created with the default template does not seem to work properly when published to the portal?







      function azure azure-function-app-proxy






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 23 '18 at 1:19









      Tamás Huj

      4761412




      4761412










      asked Nov 22 '18 at 19:32









      veenaroseveenarose

      317




      317
























          1 Answer
          1






          active

          oldest

          votes


















          1














          You have to reference the missing external assembly:
          https://docs.microsoft.com/en-us/azure/azure-functions/functions-reference-csharp#referencing-external-assemblies



          So, your function should start like:



          #r "Microsoft.WindowsAzure.Storage"
          using Microsoft.WindowsAzure.Storage.Blob;
          using Microsoft.WindowsAzure.Storage.DataMovement;





          share|improve this answer


























          • I have already tried this !It does not recognize DataMovement

            – veenarose
            Nov 26 '18 at 21:35











          • Have you tried referencing Microsoft.WindowsAzure.Storage.DataMovement as NuGet package?: docs.microsoft.com/en-us/azure/azure-functions/…

            – Tamás Huj
            Nov 27 '18 at 0:12













          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%2f53437130%2fwhat-is-the-best-way-to-import-microsoft-windowsazure-storage-datamovement-in-a%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














          You have to reference the missing external assembly:
          https://docs.microsoft.com/en-us/azure/azure-functions/functions-reference-csharp#referencing-external-assemblies



          So, your function should start like:



          #r "Microsoft.WindowsAzure.Storage"
          using Microsoft.WindowsAzure.Storage.Blob;
          using Microsoft.WindowsAzure.Storage.DataMovement;





          share|improve this answer


























          • I have already tried this !It does not recognize DataMovement

            – veenarose
            Nov 26 '18 at 21:35











          • Have you tried referencing Microsoft.WindowsAzure.Storage.DataMovement as NuGet package?: docs.microsoft.com/en-us/azure/azure-functions/…

            – Tamás Huj
            Nov 27 '18 at 0:12


















          1














          You have to reference the missing external assembly:
          https://docs.microsoft.com/en-us/azure/azure-functions/functions-reference-csharp#referencing-external-assemblies



          So, your function should start like:



          #r "Microsoft.WindowsAzure.Storage"
          using Microsoft.WindowsAzure.Storage.Blob;
          using Microsoft.WindowsAzure.Storage.DataMovement;





          share|improve this answer


























          • I have already tried this !It does not recognize DataMovement

            – veenarose
            Nov 26 '18 at 21:35











          • Have you tried referencing Microsoft.WindowsAzure.Storage.DataMovement as NuGet package?: docs.microsoft.com/en-us/azure/azure-functions/…

            – Tamás Huj
            Nov 27 '18 at 0:12
















          1












          1








          1







          You have to reference the missing external assembly:
          https://docs.microsoft.com/en-us/azure/azure-functions/functions-reference-csharp#referencing-external-assemblies



          So, your function should start like:



          #r "Microsoft.WindowsAzure.Storage"
          using Microsoft.WindowsAzure.Storage.Blob;
          using Microsoft.WindowsAzure.Storage.DataMovement;





          share|improve this answer















          You have to reference the missing external assembly:
          https://docs.microsoft.com/en-us/azure/azure-functions/functions-reference-csharp#referencing-external-assemblies



          So, your function should start like:



          #r "Microsoft.WindowsAzure.Storage"
          using Microsoft.WindowsAzure.Storage.Blob;
          using Microsoft.WindowsAzure.Storage.DataMovement;






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 22 '18 at 21:57

























          answered Nov 22 '18 at 21:51









          Tamás HujTamás Huj

          4761412




          4761412













          • I have already tried this !It does not recognize DataMovement

            – veenarose
            Nov 26 '18 at 21:35











          • Have you tried referencing Microsoft.WindowsAzure.Storage.DataMovement as NuGet package?: docs.microsoft.com/en-us/azure/azure-functions/…

            – Tamás Huj
            Nov 27 '18 at 0:12





















          • I have already tried this !It does not recognize DataMovement

            – veenarose
            Nov 26 '18 at 21:35











          • Have you tried referencing Microsoft.WindowsAzure.Storage.DataMovement as NuGet package?: docs.microsoft.com/en-us/azure/azure-functions/…

            – Tamás Huj
            Nov 27 '18 at 0:12



















          I have already tried this !It does not recognize DataMovement

          – veenarose
          Nov 26 '18 at 21:35





          I have already tried this !It does not recognize DataMovement

          – veenarose
          Nov 26 '18 at 21:35













          Have you tried referencing Microsoft.WindowsAzure.Storage.DataMovement as NuGet package?: docs.microsoft.com/en-us/azure/azure-functions/…

          – Tamás Huj
          Nov 27 '18 at 0:12







          Have you tried referencing Microsoft.WindowsAzure.Storage.DataMovement as NuGet package?: docs.microsoft.com/en-us/azure/azure-functions/…

          – Tamás Huj
          Nov 27 '18 at 0:12






















          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%2f53437130%2fwhat-is-the-best-way-to-import-microsoft-windowsazure-storage-datamovement-in-a%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

          "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

          Alcedinidae

          RAC Tourist Trophy