在门户中创建 Azure 文件共享并复制 PowerShell 脚本以将其连接为驱动器 Q:(已验证未使用)。回应:
New-PSDrive : The network resource type is not correct
At line:3 char:1
+ New-PSDrive -Name Q -PSProvider FileSystem -Root "\\xxxx.file.c ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (Q:PSDriveInfo) [New-PSDrive], Win32Exception
+ FullyQualifiedErrorId : CouldNotMapNetworkDrive,Microsoft.PowerShell.Commands.NewPSDriveCommand
其中“xxxx”是共享名。 PS命令是直接从门户复制的,没有更改。
最佳答案
如上面的评论所述,Comcast 会阻止端口 445。解决方案是让云中的另一个对象引用 Azure 文件,然后通过 HTTP 将数据返回给客户端。
关于azure - 无法连接到 Azure 文件共享,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48233157/