[英]How to use AzCopy to work in Azure web app service using cmd
I have facing one issue.我面临一个问题。 I am using AzCopy to copy my files to blob storage.
我正在使用 AzCopy 将我的文件复制到 Blob 存储。 currently I used VM to host my application.
目前我使用 VM 来托管我的应用程序。 I am able to move data to blob.
我能够将数据移动到 blob。
Now I have migrated the code into Azure PaaS ie azure app service.现在我已将代码迁移到 Azure PaaS,即 azure 应用程序服务。 now issue is I am not able to execute the AzCopy.exe using cmd and c# code.
现在的问题是我无法使用 cmd 和 c# 代码执行 AzCopy.exe。
Thanks, Dattatray谢谢, Dattatray
Bring up a console using Advanced Tools in your web app UI portal.使用 Web 应用程序 UI 门户中的高级工具调出控制台。 You should see the folder d:\\devtools\\azcopy.
您应该会看到文件夹 d:\\devtools\\azcopy。 You will find the executable there.
你会在那里找到可执行文件。
If you want to use AzCopy without running a VM, you can use Cloud Shell .如果要在不运行 VM 的情况下使用 AzCopy,可以使用Cloud Shell 。 AzCopy is installed on the containers that run both the PowerShell and Bash shell environments.
AzCopy 安装在运行 PowerShell 和 Bash shell 环境的容器上。 AzCopy is NOT installed in the sandbox that your Azure Web App runs in so you will not be able to run in from the web app console.
AzCopy没有安装在你的Azure的Web应用程序中,所以你将无法从Web应用程序控制台运行运行沙箱。 If you need to call the AzCopy exe from your web code, you could use a webjob that has the AzCopy.exe in it.
如果需要从 Web 代码调用 AzCopy exe,则可以使用包含 AzCopy.exe 的 Webjob。 See documentation here .
请参阅此处的文档。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.