问题
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