Reputation: 2852
Is it possible to use AzCopy in an Azure Automation job? Is it possible to wrap AzCopy in a Powershell Module and upload that?
Upvotes: 3
Views: 8356
Reputation: 4062
With the AzCopy, you should upload the Storage Tools, as AzCopy will not work without them. That will make the work much more difficult.
There are manuals in the Internet on how to do that with the Powershell (without Automation, however): https://alexandrebrisebois.wordpress.com/2016/02/17/upload-a-vhd-to-azure-storage-using-azcopy/ Microsoft has the Runbooks Gallery, and there are some Automation samples, but no Azcopy: https://gallery.technet.microsoft.com/scriptcenter/a-Blob-from-Azure-Storage-6bc13745
And, as a "why?" question, is there are reason you want to use exact AzCopy? There is the Start-AzureStorageBlobCopy commandlet, which does almost the same, as both AzCopy and that commandlet invoke Async Server-Side Blob Copy operation.
Upvotes: 1