Azure Files Connector
Azure Files is Microsoft's cloud file sharing platform.
While similar to Azure Blob Storage, Azure Files is geared towards creating SMB file shares that groups of users (rather than applications) can use.
This component allows managing files and shares within Azure Files.
Connections
Connection String
Authenticate using a connection string.
Limited access to Azure Storage resources can also be granted using Shared Access Signatures (SAS) authentication, which involves an access token. A connection string containing an SAS token can be obtained from the Azure Portal.
Prerequisites
- An Azure Storage account
- Access to the Azure Portal to generate a connection string with an SAS token
Setup Steps
- Sign in to the Azure Portal
- Navigate to the Storage account
- Under Security + networking, select Shared access signature
- Configure the allowed services, permissions, and an expiration date, then select Generate SAS and connection string
- Copy the generated Connection string
Configure the Connection
- Enter the Connection String: the connection string for the active directory account
The SAS token within the connection string will eventually expire. Configure a memorable expiration date so the token can be manually refreshed at a later date.
| Input | Comments | Default |
|---|---|---|
| Connection String | The connection string for the active directory account. |
Storage Shared Key
Authenticate using a storage shared key.
Azure Files can use storageSharedKeyCredential authentication, which involves an account and key pair.
Prerequisites
- An Azure Storage account
- Access to the Azure Portal to obtain the account name and account key
Setup Steps
- Sign in to the Azure Portal
- Navigate to the Storage account
- Under Security + networking, select Access keys
- Copy the Storage account name and one of the Key values
Configure the Connection
- Enter the Account Name: the name of the active directory account
- Enter the Account Key: the access key for the active directory account
| Input | Comments | Default |
|---|---|---|
| Account Name | The name of the active directory account. | |
| Account Key | The access key for the active directory account. |
Actions
Copy File
Copy a file from one path to another.
| Input | Comments | Default |
|---|---|---|
| Connection | ||
| Share Name | The name of the Azure Files share, a container where files are stored. A share can be created from within the Azure console. Share names contain only letters, numbers, and dashes. | |
| From Path | The file path of the source object within the share. Do not include a leading slash. | |
| To Path | The file path of the destination object within the share. Do not include a leading slash. |
Create Folder
Create a folder under an existing path.
| Input | Comments | Default |
|---|---|---|
| Connection | ||
| Share Name | The name of the Azure Files share, a container where files are stored. A share can be created from within the Azure console. Share names contain only letters, numbers, and dashes. | |
| Path | The file path of the object within the share. Do not include a leading slash. |
Create Share
Create a file share.
| Input | Comments | Default |
|---|---|---|
| Connection | ||
| Share Name | The name of the Azure Files share, a container where files are stored. A share can be created from within the Azure console. Share names contain only letters, numbers, and dashes. |
Delete File
Delete a file.
| Input | Comments | Default |
|---|---|---|
| Connection | ||
| Share Name | The name of the Azure Files share, a container where files are stored. A share can be created from within the Azure console. Share names contain only letters, numbers, and dashes. | |
| Path | The file path of the object within the share. Do not include a leading slash. |
Delete Folder
Delete an empty folder under an existing path.
| Input | Comments | Default |
|---|---|---|
| Connection | ||
| Share Name | The name of the Azure Files share, a container where files are stored. A share can be created from within the Azure console. Share names contain only letters, numbers, and dashes. | |
| Path | The file path of the object within the share. Do not include a leading slash. |
Delete Share
Delete a file share.
| Input | Comments | Default |
|---|---|---|
| Connection | ||
| Share Name | The name of the Azure Files share, a container where files are stored. A share can be created from within the Azure console. Share names contain only letters, numbers, and dashes. |
Download File
Download a file.
| Input | Comments | Default |
|---|---|---|
| Connection | ||
| Share Name | The name of the Azure Files share, a container where files are stored. A share can be created from within the Azure console. Share names contain only letters, numbers, and dashes. | |
| Path | The file path of the object within the share. Do not include a leading slash. |
List Folder
List files and folders in a folder.
| Input | Comments | Default |
|---|---|---|
| Connection | ||
| Share Name | The name of the Azure Files share, a container where files are stored. A share can be created from within the Azure console. Share names contain only letters, numbers, and dashes. | |
| Path | The file path of the object within the share. Do not include a leading slash. |
List Shares
List the file shares available in the account.
| Input | Comments | Default |
|---|---|---|
| Connection |
Save From URL
Save a file from a URL to Azure Files.
| Input | Comments | Default |
|---|---|---|
| Connection | ||
| Share Name | The name of the Azure Files share, a container where files are stored. A share can be created from within the Azure console. Share names contain only letters, numbers, and dashes. | |
| Path | The file path of the object within the share. Do not include a leading slash. | |
| Source URL | The URL where the source file currently resides. This endpoint must be accessible via an unauthenticated HTTP GET request, and the response must return a content-length header. |
Upload File
Upload a file under an existing path.
| Input | Comments | Default |
|---|---|---|
| Connection | ||
| Share Name | The name of the Azure Files share, a container where files are stored. A share can be created from within the Azure console. Share names contain only letters, numbers, and dashes. | |
| Path | The file path of the object within the share. Do not include a leading slash. | |
| File Contents | The contents to write to the file. This can be a string of text or binary data (like an image or PDF) that was generated in a previous step. |