How to use AzCopy to work in Azure web app service using cmd

佐手、 提交于 2019-12-25 01:00:18

问题


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.

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.

Thanks, Dattatray


回答1:


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.




回答2:


Bring up a console using Advanced Tools in your web app UI portal. You should see the folder d:\devtools\azcopy. You will find the executable there.



来源:https://stackoverflow.com/questions/53445943/how-to-use-azcopy-to-work-in-azure-web-app-service-using-cmd

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!