Az copy available for Automation account runbook

WinTechie 286 Reputation points
2023-03-07T12:46:10.7966667+00:00

Hi,

I want to leverage Automation account runbook to initiate sync between two storage account file shares, for which I would be using Az copy.

Is AzCopy available to use in Automation account runbooks? OR will I have to deploy a windows based VM with AzCopy installed and execute my powershell script from there instead using automation account?

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,228 questions
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,195 questions
{count} votes

1 answer

Sort by: Most helpful
  1. TP 83,971 Reputation points
    2023-03-21T16:21:47.3733333+00:00

    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