Azure Blob: Manage File Transfers
CUSTOMER GENERIC
- 1 Disclaimer
- 2 Introduction
- 3 Overview
- 4 Version Information
- 5 Software Requirements
- 6 Key Features
- 7 Import Universal Template
- 8 Configure Azure Blob Storage Universal Tasks
- 9 Field Descriptions for Azure Blob Storage Universal Task - Action
- 9.1 Create Container - Action
- 9.2 Example for Azure Blob Storage Universal Tasks - Create Container
- 9.3 List Container - Action
- 9.4 Example for Azure Blob Storage Universal Tasks - List Containers
- 9.5 Upload File - Action
- 9.6 Example for Azure Blob Storage Universal Tasks - Upload File
- 9.7 List Objects - Action
- 9.8 Example for Azure Blob Storage Universal Tasks - List Objects
- 9.9 Download File - Action
- 9.10 Example for Azure Blob Storage Universal Tasks - Download File
- 9.11 Delete Objects - Action
- 9.12 Example for Azure Blob Storage Universal Task - Delete Objects
- 9.13 Copy Object to Container - Action
- 9.14 Example for Azure Blob Storage Universal Tasks - Copy Object to Container
- 9.15 Delete Container - Action
- 9.16 Example for Azure Blob Storage Universal Tasks - Delete Container
- 9.17 Upload File - Action
- 9.18 Example for Azure Blob Storage Universal Tasks - Upload File
- 9.19 Monitor Blob - Action
- 9.20 Example for Azure Blob Storage Universal Tasks - Monitor Blob
- 10 Service Principal Authentication
- 10.1 Main Steps (Azure Portal)
- 10.2 Fields
- 11 Changelog
Disclaimer
Your use of this download is governed by Stonebranch’s Terms of Use, which are available at Stonebranch Integration Hub - Terms of Use
Introduction
Storing data in the cloud becomes an integral part of most modern IT landscapes. With Universal Automation Center you can securely automate your AWS, Azure, Google and MinIO File Transfers and integrate them into your existing scheduling flows.
As security is one of the key concerns, when moving to the cloud, the provided solution supports multi-level of security:
Credentials for Azure Keys are stored in an encrypted form in the database
Support for Azure Token based Shared Access Signatures ( SAS )
Communication to Azure is done via the HTTPS protocol
A Proxy Server connection to Azure with basic authentication is supported
This Universal Task focuses on file transfer to, from and between an Azure Blob Storage.
A similar solution as for Azure Blob Storage is also available for AWS S3 and Google Cloud Storage.
Overview
The Universal Task for Azure Blob: Managed File Transfers allows to securely transfers files from, to and between Azure Blob Storage container and folders.
The Universal Task for Azure Blob: Managed File Transfers supports the following main features:
The following file transfer commands are supported:
Upload a file(s) to an Azure Blob Storage container
Download of file(s) from an Azure Blob Storage container
Transfer files between Azure Blob Storage containers
List objects in an Azure Blob Storage container
Delete object(s) in an Azure Blob Storage container
List Azure Blob Storage container names
Create an Azure Blob Storage container
Monitor a Blob in a Storage container
File Transfer can be triggered by a third-party application using the Universal Automation Center RESTful Webservice API: REST API
Universal Task for Azure Blob Storage can be integrated into any existing scheduling workflow in the same way as any standard Linux or Windows Task type.
Security is ensured by using the HTTPS protocol with support for an optional Proxy Server.
Support for Azure Token based Shared Access Signatures ( SAS ), Azure Account Keys and Service Principal Authentication
No Universal Agent needs to be installed on the Azure Cloud – the communication goes via HTTPS
Version Information
Template Name | Version |
|---|---|
CS Azure Blob Storage | 1.5.0 |
Refer to Changelog for version history information.
Software Requirements
Software Requirements for Universal Agent
Universal Agent for Linux or Windows Version 7.2.0.0 or later are required
The Universal Agent needs to be installed with python option (--python yes)
Software Requirements for Universal Controller
Universal Controller 7.2.0.0. or later is required
Software Requirements for the Application to be Scheduled
The Universal Task has been tested for the python Azure Storage SDK: azure-storage-blob version: 12.7.1
Key Features
The solution supports the following file transfer scenarios:
Feature | Description |
Upload a file(s) to a container (Copy or Move) |
|
Download of file(s) from a container (Copy or Move) |
|
Copy object to a container |
Note: wild cards are not supported for this method. |
List objects in a container |
|
Delete object(s) in a container |
|
List buckets | List all container in an Azure account |
Create a container | Create a new container |
Monitor Blob | Monitor a Blob in a Storage container |
Proxy Server Connection | A proxy server connection with or without basic authentication can be configured |
Integration into 3rd Party Applications | An Azure Blob Storage file transfer can be triggered via the Universal Automation Center RESTful Web Service API within an application. |
Self-Service through Web-Client | The Azure Blob Storage Task can be fully configured, monitored and updated via the Universal Controller Web-GUI |
Authentication Methods | Shared Access Signatures ( SAS ), Azure Account Keys and Service Principal Authentication |
Import Universal Template
To use the Universal Template, you first must perform the following steps.
This Universal Task requires the Resolvable Credentials feature. Check that the Resolvable Credentials Permitted system property has been set to true.
To import the Universal Template into your Controller, follow these instructions.
When the files have been imported successfully, refresh the Universal Templates list; the Universal Template will appear on the list.
Modifications of this integration, applied by users or customers, before or after import, might affect the supportability of this integration. For more information refer to Integration Modifications.
Configure Azure Blob Storage Universal Tasks
For the new Universal Task type, create a new task and enter the task-specific Details that were created in the Universal Template.
Field Descriptions for Azure Blob Storage Universal Task - Action
The Azure Blob Storage Task provides multiple different file transfer actions. For each action the specific fields are described.
Azure Blob Storage Container is abbreviated to Container in the following.
Create Container - Action
The Action Creates a new Container.
Field | Description |
Action | Create-container action |
Useproxy ( default is NO ) | [NO | YES] If set to YES, the fields to set-up the proxy server connections are displayed:
|
Loglevel ( default is INFO ) | Universal Task logging settings [DEBUG | INFO| WARNING | ERROR | CRITICAL] |
Connection Type | [Azure Account Key | SAS Token | Service Principal Authentication] If set to "Azure Account Key", the credential field Azure Account will appear for configuration. If set to "SAS Token", the credential field SAS Token will appear for configuration. If set to "Service Principal Authentication" the following fields will appear:
For Service Principal setup details, see Service Principal Authentication |
Container | Name of the Container to create |
Example for Azure Blob Storage Universal Tasks - Create Container
The following Task creates the Container: stonebranchpm2
List Container - Action
The Action list all container of an Azure Account.
Field | Description |
Action | List-container action |
Connection Type | [Azure Account Key | SAS Token | Service Principal Authentication] If set to "Azure Account Key", the credential field Azure Account will appear for configuration. If set to "SAS Token", the credential field SAS Token will appear for configuration. If set to "Service Principal Authentication" the following fields will appear:
For Service Principal setup details, see Service Principal Authentication |
Useproxy ( default is NO ) | [NO | YES] If set to YES, the fields to set-up the proxy server connections are displayed:
|
Loglevel ( default is INFO ) | Universal Task logging settings [DEBUG | INFO| WARNING | ERROR | CRITICAL] |
Example for Azure Blob Storage Universal Tasks - List Containers
The following Task list all container of the selected Azure Account.
Upload File - Action
The Action is used to upload a single or multiple files from a Windows or Linux server to an container or a folder in a container.
Field | Description |
Action | Upload-file action |
Connection Type | [Azure Account Key | SAS Token | Service Principal Authentication] If set to "Azure Account Key", the credential field Azure Account will appear for configuration. If set to "SAS Token", the credential field SAS Token will appear for configuration. If set to "Service Principal Authentication" the following fields will appear:
For Service Principal setup details, see Service Principal Authentication |
Useproxy ( default is NO ) | [NO | YES] If set to YES, the fields to set-up the proxy server connections are displayed:
|
Loglevel ( default is INFO ) | Universal Task logging settings [DEBUG | INFO| WARNING | ERROR | CRITICAL] |
Sourcefile | Source file(s) to be uploaded to a bucket or specific folder in a container. Unix filename pattern are supported to upload a selection of files. Supported wildcards are:
|
Operation | [copy | move] In case of a “move” the source file(s) is/are deleted after the upload to the container. |
Prefix | A folder in a container is called prefix. In the Prefix field, only the name of the folder needs to be provided (no “/” after the folder name). |
Upload Write Options | Upload Write Options [Do not overwrite existing Object | Timestamp]
|
Example for Azure Blob Storage Universal Tasks - Upload File
The following Task uploads from the Linux directory the files: /home/stonebranch/demo/azure/out/test[1-4]* to the the container stonebranchpm, folder incoming.
List Objects - Action
The Action is used to display objects in a Azure Container or a specific folder in an Azure Container (prefix).
Field | Description |
Action | List-objects action |
Connection Type | [Azure Account Key | SAS Token | Service Principal Authentication] If set to "Azure Account Key", the credential field Azure Account will appear for configuration. If set to "SAS Token", the credential field SAS Token will appear for configuration. If set to "Service Principal Authentication" the following fields will appear:
For Service Principal setup details, see Service Principal Authentication |
Useproxy ( default is NO ) | [NO | YES] If set to YES, the fields to set-up the proxy server connections are displayed:
|
Loglevel ( default is INFO ) | Universal Task logging settings [DEBUG | INFO| WARNING | ERROR | CRITICAL] |
Container | Container in which the objects should be listed |
Prefix | A folder in a container is called prefix. In the Prefix field, only the name of the folder needs to be provided (no “/” after the folder name). If a prefix is provided, only objects in the folder with the prefix name are listed in the output. |
Blob | Objects matching the given Blob are listed. Unix filename pattern are supported to list only a selection of files:
Example: Blob = test* : matches everything starting with test Blob = test[1-2].txt : matches test1.txt, test2.txt Blob = test[!1].txt: does not match test1.txt Blob = test?.txt: matches test1.txt, test2.txt etc. |
Show Details | Show details like creation timestamp in the output. |
Example for Azure Blob Storage Universal Tasks - List Objects
The following Task list all objects matching the criteria test* in the container stonebranchpm in the folder incoming.
Download File - Action
This Action downloads one or multiple files from an Azure Container to a Linux or Windows folder.
Field | Description |
Action | Download-file action |
Connection Type | [Azure Account Key | SAS Token | Service Principal Authentication] If set to "Azure Account Key", the credential field Azure Account will appear for configuration. If set to "SAS Token", the credential field SAS Token will appear for configuration. If set to "Service Principal Authentication" the following fields will appear:
For Service Principal setup details, see Service Principal Authentication |
Useproxy ( default is NO ) | [NO | YES] If set to YES, the fields to set-up the proxy server connections are displayed:
|
Loglevel ( default is INFO ) | Universal Task logging settings [DEBUG | INFO| WARNING | ERROR | CRITICAL] |
Target Directory | Linux or Windows Target Directory For example, Unix filename pattern are supported to download a selection of files. Supported wildcards are:
|
Operation | [copy | move] In case of a “move” the objects are deleted after they have been download from the container. |
Download Write Options | Download Write Options: [Replace existing File | Do not overwrite existing File | Timestamp | Default Windows behaviour]
|
Example for Azure Blob Storage Universal Tasks - Download File
The following Task downloads from the container stonebranchpm all blobs matching the criteria test[1-2]* to the Linux directory: /home/stonebranch/demo/azure/in
Delete Objects - Action
The Actions is used to delete an object in an Azure Container or folder
Field | Description |
Action | Delete-objects action |