如何使用cmd使用cmd在Azure Web应用程序服务中工作 [英] How to use AzCopy to work in Azure web app service using cmd

查看:157
本文介绍了如何使用cmd使用cmd在Azure Web应用程序服务中工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了一个问题.我正在使用AzCopy将文件复制到Blob存储.目前,我使用VM托管应用程序.我能够将数据移动到Blob.

I have facing one issue. I am using AzCopy to copy my files to blob storage. currently I used VM to host my application. I am able to move data to blob.

现在,我已将代码迁移到Azure PaaS中,即azure应用程序服务.现在的问题是我无法使用cmd和c#代码执行AzCopy.exe.

Now I have migrated the code into Azure PaaS i.e. azure app service. now issue is I am not able to execute the AzCopy.exe using cmd and c# code.

谢谢,达特里

推荐答案

如果要在不运行VM的情况下使用AzCopy,则可以使用此处中查看文档.

If you want to use AzCopy without running a VM, you can use Cloud Shell. AzCopy is installed on the containers that run both the PowerShell and Bash shell environments. 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. If you need to call the AzCopy exe from your web code, you could use a webjob that has the AzCopy.exe in it. See documentation here.

这篇关于如何使用cmd使用cmd在Azure Web应用程序服务中工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆