Del via


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

  1. 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

    1. On Microsoft Azure, navigate to the Azure Storage account you wish to connect
    2. Under Settings section (left blade), click on Endpoints
    3. The file endpoint will be under File service, on the file service text box.
  • Using Storage Accounts - Get Properties REST API call

    1. Get the Azure Storage account subscription Id and resource group name.
    2. Navigate to Storage Accounts - Get Properties
    3. Click on the Try it button on the top right corner of the HTTP call
    4. Sign in (the user should have access to the storage account)
    5. Choose the Azure tenant the Azure Storage account is located on
    6. Enter the Azure Storage's account name, resource group name, and select the subscription the storage account is located on
    7. Click Run
    8. The file endpoint will be on file property under primaryEndpoints object on the response

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

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

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

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

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

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.

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

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'.