Hi Brian,
Well staring with your robocopy script Azure doesn’t have a specific service for running it. However, you could consider some alternatives:
- Azure Run Command: Runs PowerShell scripts within an Azure Windows VM. However this would still require a VM. https://learn.microsoft.com/en-us/azure/virtual-machines/windows/run-command
- Azure Automation: Automates the deployment, configuration, and management of resources in your Azure environment. https://learn.microsoft.com/en-us/azure/automation/learn/automation-tutorial-runbook-textual
- Azure Functions: A serverless compute service that lets you run event-triggered code. https://learn.microsoft.com/en-us/azure/azure-functions/functions-reference-powershell?tabs=portal
- Azure Batch: A cloud-based job scheduling service that parallelizes and distributes the processing of large volumes of data. (Probably expensivest) https://learn.microsoft.com/en-us/azure/batch/batch-powershell-cmdlets-get-started
Also, for migrating files to Azure, consider using AzCopy, a command-line utility designed for high-performance uploading, downloading, and copying data to and from Microsoft Azure Blob, File, and Table storage. Remember to test in a dev/test environment before deploying to production
References:
- https://learn.microsoft.com/en-us/azure/storage/files/storage-files-migration-robocopy
- https://learn.microsoft.com/en-us/azure/virtual-machines/windows/run-command-managed
- https://techcommunity.microsoft.com/t5/itops-talk-blog/how-to-run-scripts-on-azure-virtual-machines-with-the-run/ba-p/292446
- https://learn.microsoft.com/en-us/answers/questions/1393982/azure-file-share-robocopy-batch-file-scripting?page=1
- https://learn.microsoft.com/en-us/answers/questions/923846/is-it-possible-to-invoke-azcopy-from-azure-functio
If the information helped address your question, please Accept the answer.
Luis