IT Automation in Studio Web - Backup files to the Cloud (Azure and AWS)

This workflow guide showcases how you can leverage the UiPath IT Automation official activities in Studio Web to automate scenarios related to files management, archive, backup.

Automation Steps

1. Add in-argument to select the backup’s destination Cloud storage

The destination cloud storage can differ for each task / request, so Ana creates in the Data Manager area an InArgument of type Text (possible values aws , azure ).

2. Evaluate Cloud in-argument

We’re using the Switch activity from the System package to decide which cloud storage will be used as the destination for the files backup / archiving; bind the activity’s Expression mandatory input to the Cloud in-argument and add aws and azure as valid Switch cases.

For possible invalid values, we include in the Default case a Throw activity from the System package and set as value for the Exception input (via the Expression Editor) the value New Exception("Not Implemented")

3. Add cloud storage connection details in the Orchestrator assets

The UiPath IT Automation integrations use activities of type Scope for connections. We’re going to use Orchestrator Assets as credentials store (embedding passwords and secrets directly in the automation is not recommended).

4. Configuring the Amazon Web Services Scope

The Get Credential activity from the System package retrieves the value of the AWS_Key Orchestrator asset.

The credential’s username is used as value for the Amazon Web Services Scope activity’s Access Key ID ’s input and the credential’s password as value for the Secret Access Key input.

5. Configuring the Azure Scope

We use the Get Credential and Get Asset activities from the System package to retrieve the values of the following Orchestrator Assets: Azure_SubscriptionID, Azure_TenantID, Azure_AppRegistration.

We configure the Azure_AppRegistration credential’s username as value for the Azure Scope activity’s Client ID ’s input and the password as value for the Client Secret input.

6. Uploading files to Azure Blob Container

In order to upload files in an Azure blob container, we add to the project the Get Storage Account , Get Storage Account Key and Get Blob Container activities from the Azure package:


In this example we’ll backup/archive files that are synchronized to a OneDrive folder; in order to retrieve them, we add to the project the ForEachFile/Folder and Download File activities from the Office365 package. After setting up the connection to OneDrive, we set the location from where the files are downloaded ‘StudioWeb-CloudStorage-Demo’ . In order to upload a file, first it has to be downloaded locally, so we have to configure the iterator of the for-each activity ( DriveItem ) as value of the Download File ’s input File to download.

Next we add to the project the Upload Blob from File activity from the Azure package and configure the values of the activity’s inputs:

  • Blob Container - output of the Get Blob Container activity
  • Blob Name - output of the Download File activity, property .FullName
  • File to Upload - output of the Download File activity

7. Uploading files to Amazon Web Services S3 Bucket

In order to upload files in AWS, we have to add to the project the Get Bucket activity from the Amazon Web Services package:

In this example we’ll backup/archive files that are synchronized to a OneDrive folder; in order to retrieve them, we add to the project the ForEachFile/Folder and Download File activities from the Office365 package. After setting up the connection to OneDrive, we set the location from where the files are downloaded ‘StudioWeb-CloudStorage-Demo’ . In order to upload a file, first it has to be downloaded locally, so we have to configure the iterator of the for-each activity ( DriveItem ) as value of the Download File ’s input File to download.

We now add to the project the Upload Object from File activity from the Amazon Web Services package and configure the values of the activity’s inputs:

  • Bucket - output of the Get Bucket activity
  • Object Key Name - output of the Download File activity, property .FullName
  • File to Upload - output of the Download File activity

Demo project

ITAutomation_UploadFilesToCloud.zip (4.1 KB)

Demo video