To upload files to Azure VMs, you can create files upload jobs.
Jobs allow you to automate files upload. Each job describes advanced upload settings, such as the list of files that must be uploaded, destination folder, schedule according to which upload must be performed and, optionally, PowerShell commands to be performed before the job starts and/or after the job finishes.
To create a files upload job:
1.Open the Virtual Machines view.
2.In the Machines list on the left, choose an Azure VM to which you want to upload files.
3.Do one of the following to open the Files Upload Job wizard:
▪Click Upload Files on the ribbon.
▪Right-click the VM and choose Create Upload Files Job.
4.At the Job name and description step of the wizard, specify a name and description of the job.
5.At the Choose source objects step of the wizard, choose files that the job must upload. Click Add, browse to the necessary files, select them and click Open.
To select several files in a folder, press and hold the [CTRL] or [SHIFT] key on the keyboard.
To remove a file from the job scope, select it in the list and click Remove.
To remove all files from the job scope, click Clear.
6.At the Choose destination folder step of the wizard, expand the folder tree of the target VM and select a folder to which files must be uploaded.
7.At the Set job schedule step of the wizard, you can choose to run the job manually or schedule the job to run on a regular basis.
To run the job on a schedule, select the Run the job automatically check box and define scheduling settings for the job:
▪Daily at this time — select this option to run the job at a specific time on a defined week day.
▪Monthly at this time — select this option to run the job once a month on a defined week day.
▪Periodically every minute/hour — select this option to run the job repeatedly throughout a day with a defined time interval.
If you plan to run the job manually, leave the Run the job automatically check box cleared.
You cannot concurrently run two or more jobs that reference the same Azure VM as the job source or job target. If you schedule several jobs to run simultaneously against the same Azure VM, Veeam FastSCP for Microsoft Azure will perform only one job at a time; the other jobs will be put in queue.
8.At the PowerShell commands step of the wizard, specify PowerShell commands that must be performed before the job starts and/or after the job finishes.
PowerShell commands specified in this section will be executed on the Azure VM. The following logic is used when executing commands:
▪PowerShell pre-commands are executed before running the job.
If the execution status of the commands is successful, the job will start. If execution of the commands fails, the job will not start, and post-commands (if specified) will not be performed as well. The job session status will be reported as Failed. The command execution errors will be returned in the job session details.
▪PowerShell post-commands are executed after the job finishes.
If the execution of the commands fails, the job session status will be reported as Failed. The command execution errors will be returned in the job session details.
If an Azure VM runs Microsoft Windows 2008 R2, the scripts can only include cmdlets that use common language runtime (CLR) version 2.0 or earlier.
9.Click Finish to save job settings and close the wizard.