【问题标题】:Getting an error while connecting Azure file share [duplicate]连接 Azure 文件共享时出错 [重复]
【发布时间】:2021-10-08 20:15:25
【问题描述】:

New-PSDrive : 网络资源类型不正确

在 line:6 char:5

  • New-PSDrive -Name U -PSProvider FileSystem -Root "\\rohitstore17. ...  
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
    
  • CategoryInfo : InvalidOperation: (U:PSDriveInfo) [New-PSDrive], Win32Exception
  • FullyQualifiedErrorId : CouldNotMapNetworkDrive,Microsoft.PowerShell.Commands.NewPSDriveCommand

【问题讨论】:

    标签: azure


    【解决方案1】:

    我尝试连接我的 azure 文件共享,它对我来说工作正常

    这是我遵循的步骤: 在存储帐户中创建了文件共享

    然后从Connect>选择盘符,复制url,粘贴到连接成功的Power shell中。

    如果您在连接时遇到网络问题,您可以创建private endpoint for your storage account

    有关更多信息,请参阅此 GitHub 链接:Connect using New-PSDrive from the Portal (Azure File Share) needs fixing 和 Microsoft 文档:Mount SMB Azure file share on Windows

    【讨论】:

      猜你喜欢
      • 2016-03-27
      • 1970-01-01
      • 2018-06-22
      • 1970-01-01
      • 2021-03-24
      • 2020-04-24
      • 1970-01-01
      • 2021-01-10
      • 1970-01-01
      相关资源
      最近更新 更多