无法将文件从 azure 文件共享复制到 azure VM 中的本地磁盘

时间:2021-04-07 15:01:22

标签: azure azure-devops azure-pipelines azure-file-copy

我有 azure 虚拟机,在其中我已将 Azure 文件共享安装为驱动器(V:),我正在尝试创建 azure 管道,该管道将执行复制任务以将文件从已安装的 Azure 文件共享(v:) 复制到本地磁盘(D:)。

在发布管道中,我选择了复制任务,并将源作为 Azure 文件共享驱动器路径 (\\filesharepath\foldername) 和目标作为 (D:\Foldername) 但当我运行管道时出现错误< /p> <块引用>

未处理:未找到源文件夹:(\\filesharepath\foldername)

我还尝试了其他方法来创建 PowerShell 脚本任务,并使用 Copy-Item 命令创建了一个 powershell 脚本(在 azure VM 内)来执行复制任务,但是在运行管道时出现错误

<块引用>

Copy-Item: cannot find drive. The drive does not exists

虽然在 azure VM 中,我能够运行 powershell 脚本并且文件复制正在发生,但只有当我通过管道运行脚本时才会出现问题,如何克服这些问题?

0 个答案:

没有答案
相关问题