Runbooks that run in Azure sandbox don't support calling exes (like azcopy). One potential approach to get around this limitation would be to use Hybrid Runbook worker with a VM.
Automation Hybrid Runbook Worker overview
For reference, below link details sandbox limitation:
If the above is helpful please click Accept Answer.
@WinTechie Let me loop in Automation team to provide more information regarding this.
@WinTechie You should be able to use AZ Copy on automation runbook. You can download AzCopy and then use it in your runbook by invoking the AzCopy executable. You can find more information on how to use AzCopy in Automation account runbooks in the following article: https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-v10
Please refer to this similar discussion here- https://social.msdn.microsoft.com/Forums/Sharepoint/en-US/2dbdd87a-52dc-45df-812f-6df1a1d61770/using-azcopy-from-azure-automation?forum=azureautomation#:%7E:text=If%20you%20have%20to%20install%20AzCopy%2C%20then%20your%20only%20option,any%20runbook%20on%20that%20worker.
Hope this helps. Please do let me know if you need further assistance. Thank you!
@WinTechie Just checking in to see if the above answer helped. If this answers your query, do click "Accept the answer” for the same, which might be beneficial to other community members reading this thread. And, if you have any further query do let us know.
Sign in to comment