Skip to content

Commit c5c2446

Browse files
authored
Merge pull request #102089 from ecfan/chunking
Updates for message chunking - 3/6/2020
2 parents eb69064 + 3599cb0 commit c5c2446

File tree

3 files changed

+44
-23
lines changed

3 files changed

+44
-23
lines changed

articles/connectors/connectors-sftp-ssh.md

Lines changed: 44 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.suite: integration
66
author: divyaswarnkar
77
ms.reviewer: estfan, klam, logicappspm
88
ms.topic: article
9-
ms.date: 02/28/2020
9+
ms.date: 03/7/2020
1010
tags: connectors
1111
---
1212

@@ -32,29 +32,34 @@ For differences between the SFTP-SSH connector and the SFTP connector, review th
3232
> For logic apps in an [integration service environment (ISE)](../logic-apps/connect-virtual-network-vnet-isolated-environment-overview.md),
3333
> this connector's ISE-labeled version uses the [ISE message limits](../logic-apps/logic-apps-limits-and-config.md#message-size-limits) instead.
3434
35+
You can override this adaptive behavior when you [specify a constant chunk size](#change-chunk-size) to use instead. This size can range from 5 MB to 50 MB. For example, suppose you have a 45 MB file and a network that can that support that file size without latency. Adaptive chunking results in several calls, rather that one call. To reduce the number of calls, you can try setting a 50 MB chunk size. In different scenario, if your logic app is timing out, for example, when using 15 MB chunks, you can try reducing the size to 5 MB.
36+
3537
Chunk size is associated with a connection, which means that you can use the same connection for actions that support chunking and then for actions that don't support chunking. In this case, the chunk size for actions that don't support chunking ranges from 5 MB to 50 MB. This table shows which SFTP-SSH actions support chunking:
3638

37-
| Action | Chunking support |
38-
|--------|------------------|
39-
| **Copy file** | No |
40-
| **Create file** | Yes |
41-
| **Create folder** | Not applicable |
42-
| **Delete file** | Not applicable |
43-
| **Extract archive to folder** | Not applicable |
44-
| **Get file content** | Yes |
45-
| **Get file content using path** | Yes |
46-
| **Get file metadata** | Not applicable |
47-
| **Get file metadata using path** | Not applicable |
48-
| **List files in folder** | Not applicable |
49-
| **Rename file** | Not applicable |
50-
| **Update file** | No |
51-
|||
39+
| Action | Chunking support | Override chunk size support |
40+
|--------|------------------|-----------------------------|
41+
| **Copy file** | No | Not applicable |
42+
| **Create file** | Yes | Yes |
43+
| **Create folder** | Not applicable | Not applicable |
44+
| **Delete file** | Not applicable | Not applicable |
45+
| **Extract archive to folder** | Not applicable | Not applicable |
46+
| **Get file content** | Yes | Yes |
47+
| **Get file content using path** | Yes | Yes |
48+
| **Get file metadata** | Not applicable | Not applicable |
49+
| **Get file metadata using path** | Not applicable | Not applicable |
50+
| **List files in folder** | Not applicable | Not applicable |
51+
| **Rename file** | Not applicable | Not applicable |
52+
| **Update file** | No | Not applicable |
53+
||||
54+
55+
> [!NOTE]
56+
> To upload large files, you need both read and write permissions for the root folder on your SFTP server.
5257
53-
* SFTP-SSH triggers don't support chunking. When requesting file content, triggers select only files that are 15 MB or smaller. To get files larger than 15 MB, follow this pattern instead:
58+
* SFTP-SSH triggers don't support message chunking. When requesting file content, triggers select only files that are 15 MB or smaller. To get files larger than 15 MB, follow this pattern instead:
5459

55-
* Use an SFTP-SSH trigger that returns file properties, such as **When a file is added or modified (properties only)**.
60+
1. Use an SFTP-SSH trigger that returns only file properties, such as **When a file is added or modified (properties only)**.
5661

57-
* Follow the trigger with the SFTP-SSH **Get file content** action, which reads the complete file and implicitly uses message chunking.
62+
1. Follow the trigger with the SFTP-SSH **Get file content** action, which reads the complete file and implicitly uses message chunking.
5863

5964
<a name="comparison"></a>
6065

@@ -153,13 +158,13 @@ If your private key is in PuTTY format, which uses the .ppk (PuTTY Private Key)
153158

154159
1. Sign in to the [Azure portal](https://portal.azure.com), and open your logic app in Logic App Designer, if not open already.
155160

156-
1. For blank logic apps, in the search box, enter "sftp ssh" as your filter. Under the triggers list, select the trigger you want.
161+
1. For blank logic apps, in the search box, enter `sftp ssh` as your filter. Under the triggers list, select the trigger you want.
157162

158163
-or-
159164

160-
For existing logic apps, under the last step where you want to add an action, choose **New step**. In the search box, enter "sftp ssh" as your filter. Under the actions list, select the action you want.
165+
For existing logic apps, under the last step where you want to add an action, select **New step**. In the search box, enter `sftp ssh` as your filter. Under the actions list, select the action you want.
161166

162-
To add an action between steps, move your pointer over the arrow between steps. Choose the plus sign (**+**) that appears, and then select **Add an action**.
167+
To add an action between steps, move your pointer over the arrow between steps. Select the plus sign (**+**) that appears, and then select **Add an action**.
163168

164169
1. Provide the necessary details for your connection.
165170

@@ -179,10 +184,26 @@ If your private key is in PuTTY format, which uses the .ppk (PuTTY Private Key)
179184

180185
1. In the SFTP-SSH trigger or action you added, paste the *complete* key you copied into the **SSH private key** property, which supports multiple lines. ***Make sure you paste*** the key. ***Don't manually enter or edit the key***.
181186

182-
1. When you're done entering the connection details, choose **Create**.
187+
1. When you're done entering the connection details, select **Create**.
183188

184189
1. Now provide the necessary details for your selected trigger or action and continue building your logic app's workflow.
185190

191+
<a name="change-chunk-size"></a>
192+
193+
## Override chunk size
194+
195+
To override the default adaptive behavior that chunking uses, you can specify a constant chunk size from 5 MB to 50 MB.
196+
197+
1. In the action's upper-right corner, select the ellipses button (**...**), and then select **Settings**.
198+
199+
![Open SFTP-SSH settings](./media/connectors-sftp-ssh/sftp-ssh-connector-setttings.png)
200+
201+
1. Under **Content Transfer**, in the **Chunk size** property, enter an integer value from `5` to `50`, for example:
202+
203+
![Specify chunk size to use instead](./media/connectors-sftp-ssh/specify-chunk-size-override-default.png)
204+
205+
1. When you're finished, select **Done**.
206+
186207
## Examples
187208

188209
<a name="file-added-modified"></a>
25.6 KB
Loading
13.6 KB
Loading

0 commit comments

Comments
 (0)