title: Cannot perform http request with http module nodejs azure function
body: <p>I am trying to make a http request with node module <code>http</code> on an azure function with javascript and for some reason <code>http.request</code> is not receiving data(no error printed its like the requested is blocked). There is anything wrong with azure configuration or the code?Am i missing something really obvious? </p>
  
  <blockquote>
    <p>Code is running fine on local js file</p>
  </blockquote>
  
  <p><code>context.log('JavaScript timer trigger function ran!', timeStamp);</code> 
  printed as expected but <code>context.log("SUCCESS", JSON.parse(data));</code> not printed at all.</p>
  
  <p>Also tryed different libraries (request, axios) with no success</p>
  
  <pre><code>
      module.exports = async function (context, myTimer) {
          var timeStamp = new Date().toISOString();
  
          if (myTimer.IsPastDue)
          {
              context.log('JavaScript is running late!');
          }
          context.log('JavaScript timer trigger function ran!', timeStamp);  
  
          const http = require('http');
          http.get('http://myAPIurl', (resp) =&gt; {
          let data = '';
  
          // A chunk of data has been recieved.
          resp.on('data', (chunk) =&gt; {
            data += chunk;
          });
  
          // The whole response has been received. Print out the result.
          resp.on('end', () =&gt; {
            context.log("SUCCESS", JSON.parse(data));
          });
  
        }).on("error", (err) =&gt; {
        context.log("ERROR: " + err.message);
        });
  
      }
  
  </code></pre>