title: Azure Functions + node.js - cannot find module
body: <p>I've created an app and a function with Azure CLI, which has a proper structure, so:</p>
  
  <pre><code>/host.json
  /local.settings.json
  /mycustomfunction/function.json
  /mycustomfunction/index.js
  /mycustomfunction/package.json
  /node_modules
  </code></pre>
  
  <p>Source code gets downloaded from BitBucket, deployed with Kudu, built (<em>node_modules</em> are fetched, azure is one of them), everything is green.</p>
  
  <p>When it comes to dependencies there is only one - <code>"azure": "^2.0.0-preview"</code></p>
  
  <p>But when I run the function on Azure, I get error </p>
  
  <p><code>2017-09-08T13:59:06.091 JavaScript HTTP trigger function processed a request.
  2017-09-08T13:59:06.216 Exception while executing function: Functions.mycustomfunction. mscorlib: Error: Cannot find module 'azure'
      at Function.Module._resolveFilename (module.js:469:15)</code></p>
  
  <p>The same function works fine locally when run with <code>func host start</code>...</p>
  
  <p>What am I doing wrong? :)</p>