简体   繁体   English

如何使用 AzCopy 使用 cmd 在 Azure Web 应用服务中工作

[英]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.

相关问题 如何在Web App Service中使用“Azure文件存储”? - How can I use “Azure File Storage” with Web App Service? 使用SignalR时的Azure服务总线或仅Azure Web应用 - Azure service bus or just Azure web app when using SignalR 尝试在Azure App服务上使用WEB API时出错 - Error when trying to use WEB API on Azure App service 如何使用 Azure 应用服务本地缓存? - How to use Azure App Service Local Cache? 如果 web 应用程序托管在 azure 应用程序服务上,如何读取证书 - how to read certificate if web app is hosted over azure app service 如何配置Windows Azure WCF服务Web角色以使用netTcpBinding? - How to configure a Windows Azure WCF Service Web Role to work with netTcpBinding? 如何使用 websockets 在我的 Azure 应用服务 Web 应用和本地控制台应用之间建立连接? - How do I establish a connection between my Azure App Service Web App and local console app using websockets? 将 GitLab Web 应用程序部署到 Azure 应用程序服务 - Deploy GitLab web app to Azure app service 如何创建Azure Web服务并使用现有的SQL数据库 - How to create an azure web service and use existing sql database 应该如何配置MVC Web应用程序以使用Azure存储? - How should be configured a MVC web app to work with Azure Storage?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM