Azure File Storage
Microsoft Azure Storage provides a massively scalable, durable, and highly available storage for data on the cloud, and serves as the data storage solution for modern applications. Connect to File Storage to perform various operations such as create, update, get and delete on files in your Azure Storage account.
This connector is available in the following products and regions:
Service | Class | Regions |
---|---|---|
Logic Apps | Standard | All Logic Apps regions and Integration Service Environments (ISEs) |
Power Automate | Premium | All Power Automate regions |
Power Apps | Premium | All Power Apps regions |
Contact | |
---|---|
Name | Microsoft |
URL | Microsoft LogicApps Support Microsoft Power Automate Support Microsoft Power Apps Support |
Connector Metadata | |
---|---|
Publisher | Microsoft |
Website | https://azure.microsoft.com/services/storage/files/ |
Actions that support chunking feature.
These actions can be used to handle files up to 300MB. The feature is enabled by default.
Known issues and limitations
- Logic apps can't directly access storage accounts that are behind firewalls if they're both in the same region. As a workaround, you can have your logic apps and storage account in different regions. For more information about enabling access from Azure Logic Apps to storage accounts behind firewalls, see the Access storage accounts behind firewalls
Connect to Azure File connector using file endpoint
Enter the full Azure Storage file endpoint on
Azure Storage account name or file endpoint
parameter.You must provide the full endpoint, including the schema, for example:
https://account.file.core.windows.net/
https://account-secondary.file.core.windows.net/
(if connecting to the secondary endpoint)- Relative URLs (for example,
account.file.core.windows.net
) will be rejected.
Get the Azure Storage file endpoint for a given storage account
There are multiple ways to get this file endpoint:
Using Azure portal
- On Microsoft Azure, navigate to the Azure Storage account you wish to connect
- Under
Settings
section (left blade), click onEndpoints
- The file endpoint will be under File service, on the
file service
text box.
Using Storage Accounts - Get Properties REST API call
- Get the Azure Storage account
subscription Id
andresource group name
. - Navigate to Storage Accounts - Get Properties
- Click on the
Try it
button on the top right corner of the HTTP call - Sign in (the user should have access to the storage account)
- Choose the Azure tenant the Azure Storage account is located on
- Enter the Azure Storage's account name, resource group name, and select the subscription the storage account is located on
- Click
Run
- The file endpoint will be on
file
property underprimaryEndpoints
object on the response
- Get the Azure Storage account
General Limits
Name | Value |
---|---|
Maximum file size (in MB) | 50 |
Maximum number of megabytes being transferred to/from the connector within a bandwidth time interval (per connection) | 1000 |
Bandwidth time interval (in miliseconds) | 60000 |
Creating a connection
The connector supports the following authentication types:
Default | Parameters for creating connection. | All regions | Shareable |
Default
Applicable: All regions
Parameters for creating connection.
This is shareable connection. If the power app is shared with another user, connection is shared as well. For more information, please see the Connectors overview for canvas apps - Power Apps | Microsoft Docs
Name | Type | Description | Required |
---|---|---|---|
Azure Storage account name or file endpoint | string | Name or file endpoint of the Azure Storage account the connector should use. | True |
Azure Storage Account Access Key | securestring | Specify a valid primary/secondary Azure Storage account access key. | True |
Throttling Limits
Name | Calls | Renewal Period |
---|---|---|
API calls per connection | 600 | 60 seconds |
Actions
Copy file |
This operation copies a file. |
Create file |
This operation uploads a file to Azure File Storage. |
Delete file |
This operation deletes a file. |
Extract archive to folder |
This operation extracts an archive file into a folder (example: .zip). |
Get file content |
This operation retrieves file contents using id. |
Get file content using path |
This operation retrieves file contents using path |
Get file metadata |
This operation retrieves file metadata using file id. |
Get file metadata using path |
This operation retrieves file metadata using path. |
List files |
This operation lists files in a folder. |
Update file |
This operation updates a file in Azure File Storage. |
Copy file
This operation copies a file.
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
Source url
|
source | True | string |
Specify the Url to source file |
Destination file path
|
destination | True | string |
Specify the destination file path, including target filename |
Overwrite?
|
overwrite | boolean |
Should the destination file be overwritten (true/false)? |
Returns
Blob metadata
- Body
- BlobMetadata
Create file
This operation uploads a file to Azure File Storage.
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
Folder path
|
folderPath | True | string |
Specify folder path to upload |
File name
|
name | True | string |
Specify name of the file to create |
File content
|
body | True | binary |
Specify content of the file to upload |
Returns
Blob metadata
- Body
- BlobMetadata
Delete file
This operation deletes a file.
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
File
|
id | True | string |
Specify the file to delete |
Extract archive to folder
This operation extracts an archive file into a folder (example: .zip).
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
Source archive file path
|
source | True | string |
Specify the path to the archive file |
Destination folder path
|
destination | True | string |
Specify the path in Azure File Storage to extract the archive contents |
Overwrite?
|
overwrite | boolean |
Should destination file be overwritten (true/false)? |
Returns
- response
- array of BlobMetadata
Get file content
This operation retrieves file contents using id.
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
File
|
id | True | string |
Specify the file to get contents |
Infer Content Type
|
inferContentType | boolean |
Infer content-type based on extension |
Returns
The content of the file.
- File Content
- binary
Get file content using path
This operation retrieves file contents using path
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
File path
|
path | True | string |
Specify unique path to the file |
Infer Content Type
|
inferContentType | boolean |
Infer content-type based on extension |
Returns
The content of the file.
- File Content
- binary
Get file metadata
This operation retrieves file metadata using file id.
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
File
|
id | True | string |
Specify the file to get metadata |
Returns
Blob metadata
- Body
- BlobMetadata
Get file metadata using path
This operation retrieves file metadata using path.
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
File path
|
path | True | string |
Specify unique path to the file |
Returns
Blob metadata
- Body
- BlobMetadata
List files
This operation lists files in a folder.
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
Folder
|
id | True | string |
Specify the folder |
Returns
Represents a page of blob metadata.
- Body
- BlobMetadataPage
Update file
This operation updates a file in Azure File Storage.
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
File
|
id | True | string |
Specify the file to update |
File content
|
body | True | binary |
Specify the content to update the file with |
Returns
Blob metadata
- Body
- BlobMetadata
Definitions
BlobMetadata
Blob metadata
Name | Path | Type | Description |
---|---|---|---|
Id
|
Id | string |
The unique id of the file or folder. |
Name
|
Name | string |
The name of the file or folder. |
DisplayName
|
DisplayName | string |
The display name of the file or folder. |
Path
|
Path | string |
The path of the file or folder. |
LastModified
|
LastModified | date-time |
The date and time the file or folder was last modified. |
Size
|
Size | integer |
The size of the file or folder. |
MediaType
|
MediaType | string |
The media type of the file or folder. |
IsFolder
|
IsFolder | boolean |
A boolean value (true, false) to indicate whether or not the blob is a folder. |
ETag
|
ETag | string |
The etag of the file or folder. |
FileLocator
|
FileLocator | string |
The filelocator of the file or folder. |
BlobMetadataPage
Represents a page of blob metadata.
Name | Path | Type | Description |
---|---|---|---|
value
|
value | array of BlobMetadata |
Blob metadata collection. |
binary
This is the basic data type 'binary'.