Uploads files to a server using the Azure Blob protocol.
The AzureBlob nodes enable you to access data from Azure containers so that you can integrate your data flows with Azure. See:
Uploading a single file to an Azure Blob container
- Drag an AzureBlob Put node onto the canvas, then in the Container property, specify the name of the Azure Blob container to which you want to upload your file.
- Provide your Azure account name and account key details in the AccountName and AccountKey properties.
- In the FileName property, specify the location of the file that you want to upload.
Uploading multiple files to an Azure Blob container
- Drag a Directory List node onto the canvas and connect it to an AzureBlob Put node. Run the Directory List node to generate a list of files in a given location.
- On the AzureBlob Put node, in the Container property specify the name of the Azure Blob container.
- Provide your Azure account name and account key details in the AccountName and AccountKey properties.
- Select the (from Field) variant of the FileName property, then specify the name of the input field that references the location of the files to upload.
Example
You have four files on your local desktop that you want to upload to Azure.
- Drag a Directory List node onto the canvas and in the DirectoryName property type the location of the folder that contains the four files, e.g.
C:\Users\<username>\Documents\Azure_upload
. - You want to upload all files from the specified location to Azure, so in the Pattern property type
*
. - Run the Directory List node, then connect it to an AzureBlob Put node.
The output of the Directory List node is as follows:
FileName
unicode
File
unicode
Size
long
Created
datetime
Modified
datetime
C:\Users\<username>\Documents\Azure_upload\create4.txt create4.txt 25 2017-11-27T06:50:43-0400 2017-11-27T06:50:43-0400 C:\Users\<username>\Documents\Azure_upload\create3.txt create3.txt 25 2017-11-27T06:50:43-0400 2017-11-27T06:50:43-0400 C:\Users\<username>\Documents\Azure_upload\create2.txt create2.txt 25 2017-11-27T06:50:43-0400 2017-11-27T06:50:43-0400 C:\Users\<username>\Documents\Azure_upload\create1.txt create1.txt 25 2017-11-27T06:50:43-0400 2017-11-27T06:50:43-0400 - On the AzureBlob Put node, in the Container property, type the name of the Azure Blob container to which you want to upload your files, e.g.
my-example-container
. - Select the (fromField) variant of the FileName property and type the name of the input field containing the location of the files that you want to upload, in this case
FileName
.Tip: You can optionally specify the Object name for the blob that will be created in the specified container in the Object property. If you leave the Object property blank, the blob name will be the same as the uploaded file name. The file name (or Object name) must be a valid Azure name. - Provide your Azure account name and account key details in the AccountName and AccountKey properties.
- Run the AzureBlob Put node to upload your files.
Properties
Container
Specify the name of the Azure Blob Container.
Choose the (from Field) variant of this property to look up the value from an input field with the name specified.
A value is required for this property.
Object
Optionally specify the name of the Azure Blob Object.
The default value is the base name of the file.
Choose the (from Field) variant of this property to look up the value from an input field with the name specified.
AccountName
Specify the Azure Account Name.
A value is required for this property.
AccountKey
Specify the Azure Secret Key.
A value is required for this property.
FileName
Specify the location of the file to upload to Azure.
A value is required for this property.
Choose the (from Field) variant of this property to look up the value from an input field with the name specified.
FailureBehavior
Optionally specify what to do when a file fails to upload. Choose from:
- Error - Report error and stop further processing.
- Log - Log a warning message and skip the file.
- Ignore - Skip the file.
The default value is Log.
Inputs and outputs
Inputs: 1 optional.
Outputs: downloaded files, errors.