title: Error is now showing in Azure Function(Azure Cloud)
body: <p>Script is working fine when I run it on my local PC. I am using VS code with azure function. When I am running the code, getting the exact error. But I put the on azure function (azure cloud) and run the code, there is no trace of any error. I could not find any solution for my problem. Please help me out.</p>
  
  <p>Thanks in advance.</p>
  
  <pre><code>/* Connect Remote Server and do rest work */
  var Client = require('ssh2').Client;
  var conn = new Client();
  var fs = require("fs"); // Use node filesystem
  
  const HOST = 'xxx.xxx.xxx.xxx';
  const POST = '22';
  const USERNAME = 'xxxxxxxxxxx';
  const PASSWORD = 'xxxxxxxxx';
  
  module.exports = async function (context, req) {
      conn.on('error', function(err) {
          console.log('SSH - Connection Error: ' + err);
      });
  
      conn.on('end', function() {
          console.log('SSH - Connection Closed');
      });
  
     conn.on('ready', function() {
         console.log('Client :: ready');
         conn.sftp(function(err, sftp) {
             if (err) console.log(err);
         });
     });
  
     conn.connect({
         host: HOST,
         port: POST,
         username: USERNAME,
         password: PASSWORD
     });
  }
  </code></pre>