【发布时间】:2021-04-12 16:16:58
【问题描述】:
我有一个 azure 触发器功能,我希望该服务从本地文件夹中获取文件,然后处理它们。该文件夹是我们只能通过VPN访问的。该服务对此具有 VNET 配置,但仍无法访问该文件夹。
我该怎么办?
请告诉我为什么会收到此错误,或者我是否需要更改流程中的某些内容?提前致谢。
试图ping文件夹地址,得到这个异常
System.Net.NetworkInformation.PingException: An exception occurred during a Ping request. ---> System.ComponentModel.Win32Exception (5): Access is denied. at System.Net.NetworkInformation.Ping.InitialiseIcmpHandle() at System.Net.NetworkInformation.Ping.DoSendPingCore(IPAddress address, Byte[] buffer, Int32 timeout, PingOptions options, Boolean isAsync) at System.Net.NetworkInformation.Ping.Send(IPAddress address, Int32 timeout, Byte[] buffer, PingOptions options) --- End of inner exception stack trace --- at System.Net.NetworkInformation.Ping.Send(IPAddress address, Int32 timeout, Byte[] buffer, PingOptions options) at System.Net.NetworkInformation.Ping.Send(String hostNameOrAddress, Int32 timeout, Byte[] buffer, PingOptions options) at ....
试图访问路径,得到下面的异常
System.UnauthorizedAccessException: Access to the path '\\\xxxxxx\test' is denied. at System.IO.Enumeration.FileSystemEnumerator`1.CreateDirectoryHandle(String path, Boolean ignoreNotFound) at System.IO.Enumeration.FileSystemEnumerator`1.Init() at ....
【问题讨论】:
标签: azure azure-functions access-denied vnet