Can an Azure Function access internet?












-3














... or, rather, what's involved in arranging that access?



I'd like to try out AWS Lambda and Azure Functions, and have in mind a toy application which would on schedule call a Web API - or scrape a web page - grab some data, and save it to file. I worry that the "internet access" part might not be straightforward; initial googling suggested that for AWS Lambda, I would need to obtain some "NAT" (?), at $30 pm, and for Azure Functions, I did not find anything. Can anyone advise?










share|improve this question




















  • 1




    You don't need to do anything specific to get outbound internet access. You'll only pay for the time your function runs. Where you save the scraped data to is something to consider. If this is just a test then save it to the local file system of the function but be aware that it may not be persistent. If you need to persist it, then write it to object storage (like S3).
    – jarmod
    Nov 20 '18 at 16:46
















-3














... or, rather, what's involved in arranging that access?



I'd like to try out AWS Lambda and Azure Functions, and have in mind a toy application which would on schedule call a Web API - or scrape a web page - grab some data, and save it to file. I worry that the "internet access" part might not be straightforward; initial googling suggested that for AWS Lambda, I would need to obtain some "NAT" (?), at $30 pm, and for Azure Functions, I did not find anything. Can anyone advise?










share|improve this question




















  • 1




    You don't need to do anything specific to get outbound internet access. You'll only pay for the time your function runs. Where you save the scraped data to is something to consider. If this is just a test then save it to the local file system of the function but be aware that it may not be persistent. If you need to persist it, then write it to object storage (like S3).
    – jarmod
    Nov 20 '18 at 16:46














-3












-3








-3







... or, rather, what's involved in arranging that access?



I'd like to try out AWS Lambda and Azure Functions, and have in mind a toy application which would on schedule call a Web API - or scrape a web page - grab some data, and save it to file. I worry that the "internet access" part might not be straightforward; initial googling suggested that for AWS Lambda, I would need to obtain some "NAT" (?), at $30 pm, and for Azure Functions, I did not find anything. Can anyone advise?










share|improve this question















... or, rather, what's involved in arranging that access?



I'd like to try out AWS Lambda and Azure Functions, and have in mind a toy application which would on schedule call a Web API - or scrape a web page - grab some data, and save it to file. I worry that the "internet access" part might not be straightforward; initial googling suggested that for AWS Lambda, I would need to obtain some "NAT" (?), at $30 pm, and for Azure Functions, I did not find anything. Can anyone advise?







amazon-web-services azure aws-lambda






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 20 '18 at 20:11









John Rotenstein

68.2k775119




68.2k775119










asked Nov 20 '18 at 13:49









Dimitri ShvorobDimitri Shvorob

1061214




1061214








  • 1




    You don't need to do anything specific to get outbound internet access. You'll only pay for the time your function runs. Where you save the scraped data to is something to consider. If this is just a test then save it to the local file system of the function but be aware that it may not be persistent. If you need to persist it, then write it to object storage (like S3).
    – jarmod
    Nov 20 '18 at 16:46














  • 1




    You don't need to do anything specific to get outbound internet access. You'll only pay for the time your function runs. Where you save the scraped data to is something to consider. If this is just a test then save it to the local file system of the function but be aware that it may not be persistent. If you need to persist it, then write it to object storage (like S3).
    – jarmod
    Nov 20 '18 at 16:46








1




1




You don't need to do anything specific to get outbound internet access. You'll only pay for the time your function runs. Where you save the scraped data to is something to consider. If this is just a test then save it to the local file system of the function but be aware that it may not be persistent. If you need to persist it, then write it to object storage (like S3).
– jarmod
Nov 20 '18 at 16:46




You don't need to do anything specific to get outbound internet access. You'll only pay for the time your function runs. Where you save the scraped data to is something to consider. If this is just a test then save it to the local file system of the function but be aware that it may not be persistent. If you need to persist it, then write it to object storage (like S3).
– jarmod
Nov 20 '18 at 16:46












3 Answers
3






active

oldest

votes


















3














Both AWS Lambda and Azure Functions can access internet by default.



Note: If you do advance configurations, for example putting an AWS Lambda function inside a VPC, that is where you need to use a NAT Gateway (Paying additionally) to access the internet.






share|improve this answer





























    2














    In addition to @4c74356b41 answer:



    Your search might not have shown what you have searched for.



    AWS Lambda functions don't have internet access only when they are inside VPC.



    By default, Lambdas aren't created in any VPC so they have Internet access.



    What you have found on Google is only true for AWS Lambda functions inside A VPC.






    share|improve this answer





















    • sorry, no idea about aws
      – 4c74356b41
      Nov 20 '18 at 19:39



















    1














    Azure function got externaloutbound internet access. I'm not even sure how you would block it. So yes. its got that.






    share|improve this answer





















      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%2f53394481%2fcan-an-azure-function-access-internet%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      3














      Both AWS Lambda and Azure Functions can access internet by default.



      Note: If you do advance configurations, for example putting an AWS Lambda function inside a VPC, that is where you need to use a NAT Gateway (Paying additionally) to access the internet.






      share|improve this answer


























        3














        Both AWS Lambda and Azure Functions can access internet by default.



        Note: If you do advance configurations, for example putting an AWS Lambda function inside a VPC, that is where you need to use a NAT Gateway (Paying additionally) to access the internet.






        share|improve this answer
























          3












          3








          3






          Both AWS Lambda and Azure Functions can access internet by default.



          Note: If you do advance configurations, for example putting an AWS Lambda function inside a VPC, that is where you need to use a NAT Gateway (Paying additionally) to access the internet.






          share|improve this answer












          Both AWS Lambda and Azure Functions can access internet by default.



          Note: If you do advance configurations, for example putting an AWS Lambda function inside a VPC, that is where you need to use a NAT Gateway (Paying additionally) to access the internet.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 20 '18 at 15:46









          AshanAshan

          10.2k21835




          10.2k21835

























              2














              In addition to @4c74356b41 answer:



              Your search might not have shown what you have searched for.



              AWS Lambda functions don't have internet access only when they are inside VPC.



              By default, Lambdas aren't created in any VPC so they have Internet access.



              What you have found on Google is only true for AWS Lambda functions inside A VPC.






              share|improve this answer





















              • sorry, no idea about aws
                – 4c74356b41
                Nov 20 '18 at 19:39
















              2














              In addition to @4c74356b41 answer:



              Your search might not have shown what you have searched for.



              AWS Lambda functions don't have internet access only when they are inside VPC.



              By default, Lambdas aren't created in any VPC so they have Internet access.



              What you have found on Google is only true for AWS Lambda functions inside A VPC.






              share|improve this answer





















              • sorry, no idea about aws
                – 4c74356b41
                Nov 20 '18 at 19:39














              2












              2








              2






              In addition to @4c74356b41 answer:



              Your search might not have shown what you have searched for.



              AWS Lambda functions don't have internet access only when they are inside VPC.



              By default, Lambdas aren't created in any VPC so they have Internet access.



              What you have found on Google is only true for AWS Lambda functions inside A VPC.






              share|improve this answer












              In addition to @4c74356b41 answer:



              Your search might not have shown what you have searched for.



              AWS Lambda functions don't have internet access only when they are inside VPC.



              By default, Lambdas aren't created in any VPC so they have Internet access.



              What you have found on Google is only true for AWS Lambda functions inside A VPC.







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Nov 20 '18 at 13:55









              AlexKAlexK

              824413




              824413












              • sorry, no idea about aws
                – 4c74356b41
                Nov 20 '18 at 19:39


















              • sorry, no idea about aws
                – 4c74356b41
                Nov 20 '18 at 19:39
















              sorry, no idea about aws
              – 4c74356b41
              Nov 20 '18 at 19:39




              sorry, no idea about aws
              – 4c74356b41
              Nov 20 '18 at 19:39











              1














              Azure function got externaloutbound internet access. I'm not even sure how you would block it. So yes. its got that.






              share|improve this answer


























                1














                Azure function got externaloutbound internet access. I'm not even sure how you would block it. So yes. its got that.






                share|improve this answer
























                  1












                  1








                  1






                  Azure function got externaloutbound internet access. I'm not even sure how you would block it. So yes. its got that.






                  share|improve this answer












                  Azure function got externaloutbound internet access. I'm not even sure how you would block it. So yes. its got that.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 20 '18 at 13:50









                  4c74356b414c74356b41

                  24.7k42050




                  24.7k42050






























                      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.





                      Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                      Please pay close attention to the following guidance:


                      • 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%2f53394481%2fcan-an-azure-function-access-internet%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

                      Origin of the phrase “under your belt”?