【发布时间】:2020-01-06 18:04:42
【问题描述】:
我正在尝试使用 azure 函数应用从 Azure VM 中的共享路径读取文件。
let networkDrive = require('windows-network-drive');
module.exports = function (context, myTimer) {
context.log('start with');
networkDrive.mount("\\\\<IP Address>\\path","Y",'username','password')
.then(function(drive){
context.log("success");
context.log(drive);
})
.catch(function(error){
context.log(error);
})
};
但我收到访问被拒绝。但是,如果我从 Azure VM 的控制台尝试相同的代码,它会按预期工作。功能应用程序/Azure VM 中是否有任何配置更改/设置要更改以使其工作。 对此的任何指针表示赞赏。
【问题讨论】:
标签: azure azure-functions