azure - 无法连接到 Azure 文件共享驱动器,使用映射驱动器无法连接,我也添加了端口 445

标签 azure networking port azure-storage azure-files

我已经创建了Azure存储,其中添加了一些文件到Azure文件共享,我想从外部访问这些文件,您可以将其映射为网络驱动器到本地计算机。建议添加 445 端口的出站规则。我也做了同样的事情,一旦我检查了 netstat,445 正在监听,但仍然无法使用文件资源管理器中的映射驱动器来映射驱动器。我也尝试过通过powershell。我遇到以下错误。凭证也正确。我能够通过 .NET 代码连接到文件共享。

也尝试连接到 CMD:收到以下错误:

System error 53 has occurred.
The network path was not found.

Powershell 出现以下错误:

New-PSDrive : The network resource type is not correct
At line:3 char:1
+ New-PSDrive -Name Z -PSProvider FileSystem -Root "\\socfileshare.file ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : InvalidOperation: (Z:PSDriveInfo) [New-PSDrive], Win32Exception
+ FullyQualifiedErrorId : CouldNotMapNetworkDrive,Microsoft.PowerShell.Commands.NewPSDriveCommand

最佳答案

您的 ISP 可能阻塞了端口 445。请运行

Test-NetConnection -ComputerName ([System.Uri]::new($storageAccount.Context.FileEndPoint).Host) -端口 445

此处的说明 - https://learn.microsoft.com/en-us/azure/storage/files/storage-how-to-use-files-windows

端口 445 的解决方法是设置 VPN 隧道 - 说明暂时托管在此处 - https://github.com/RenaShahMSFT/AzureFilesVPN

关于azure - 无法连接到 Azure 文件共享驱动器,使用映射驱动器无法连接,我也添加了端口 445,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54571999/

相关文章:

javascript - JQUERY 或 JS 有没有办法检测 Window 何时加载?基本上任何网络事件?

Java:检查哪些进程绑定(bind)到端口?

linux - 如何在 Linux 中打开端口

c# - 完成对 SerialPort.ReadLine() 的调用

azure - 每次管道运行时,Pip 验证任务都会为 PIP_INDEX_URL/PIP_EXTRA_INDEX_URL 创建新值,从而防止 docker 重用缓存层

python - 使用受 SSL 保护的 Redis 配置 Django channel

Azure:为现有服务总线队列启用分区

azure - 如何使用 Github Docker 注册表部署 Linux Azure Function

java - Android SDK : System Setting

java - 使用 Java 验证网络上的随机 URL