Hi,
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
https://learn.microsoft.com/en-us/azure/automation/automation-hybrid-runbook-worker
For reference, below link details sandbox limitation:
https://learn.microsoft.com/en-us/azure/automation/automation-runbook-execution#calling-processes
If the above is helpful please click Accept Answer.
Thanks.
-TP