【发布时间】:2019-08-08 15:29:59
【问题描述】:
尝试使用 powershell 将 Azure 文件共享(在“ResourceGroup1”中)映射到驱动器号:New-PSDrive –Name 'Z' –PSProvider FileSystem –Root '\\sa1.file.core.windows.net\solutionfiles'。
我不断收到错误“New-PSDrive:指定的驱动器根目录“\\sa1.file.core.windows.net\solutionfiles”要么不存在,要么不是文件夹” .但是是存在的!
即使我提供了 PSCredential 对象,在添加“-Credential”参数时,“New-PSDrive”也会出现不需要的弹出窗口。当我手动输入 SAName 和 SAKey 时,映射就会起作用。但是,对于自动化,我不能使用弹出窗口。怎么办?
【问题讨论】:
标签: azure powershell mapping virtual-machine drive