You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-video-indexer/logic-apps-connector-arm-accounts.md
+17-15Lines changed: 17 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,13 +14,15 @@ You can use the connectors to set up custom workflows to effectively index and e
14
14
15
15
To help you get started quickly with the Azure Video Indexer connectors, the example in this article creates Logic App flows. The Logic App and Power Automate capabilities and their editors are almost identical, thus the diagrams and explanations are applicable to both. The example in this article is based on the ARM AVI account. If you're working with a classic account, see [Logic App connectors with classic-based AVI accounts](logic-apps-connector-tutorial.md).
16
16
17
-
The "upload and index your video automatically" scenario covered in this article is comprised of two different flows that work together. The "two flow" approach is used to support async upload and indexing of larger files effectively.
17
+
The "upload and index your video automatically" scenario covered in this article is composed of two different flows that work together. The "two flow" approach is used to support async upload and indexing of larger files effectively.
18
18
19
19
* The first flow is triggered when a blob is added or modified in an Azure Storage account. It uploads the new file to Azure Video Indexer with a callback URL to send a notification once the indexing operation completes.
20
20
* The second flow is triggered based on the callback URL and saves the extracted insights back to a JSON file in Azure Storage.
21
21
22
22
> [!NOTE]
23
23
> For details about the Azure Video Indexer REST ARM API and the request/response examples, see [API](https://aka.ms/avam-arm-api). For example, [Generate an Azure Video Indexer access token](/rest/api/videoindexer/generate/access-token?tabs=HTTP). Press **Try it** to get the correct values for your account.
24
+
>
25
+
> If you are using a classic AVI account, see [Logic Apps connector with classic-based AVI accounts](logic-apps-connector-tutorial.md).
24
26
25
27
## Prerequisites
26
28
@@ -36,7 +38,7 @@ In this section you'll, you create the following flow. The first flow is tri

40
42
41
43
1. Create the [Logic App](https://ms.portal.azure.com/#create/Microsoft.LogicApp). We create a Logic App in the same region as the Azure Video Indexer region (recommended but not required). We call the logic app `UploadIndexVideosApp`.
42
44
@@ -49,7 +51,7 @@ The following image shows the first flow:
49
51
1. Select the **Logic app designer** tab, in the pane on the left.
50
52
1. Pick a **Blank Logic App** flow.
51
53
1. Search for "blob".
52
-
1. In the **All** tab, chose the **Azure Blob Storage** component.
54
+
1. In the **All** tab, choose the **Azure Blob Storage** component.
53
55
1. Under **Triggers**, select the **When a blob is added or modified (properties only) (V2)** trigger.
54
56
1. Set the storage connection.
55
57
@@ -66,7 +68,7 @@ The following image shows the first flow:
66
68
67
69

68
70
69
-
After setting the connection to the storage, it's required to specify the blob storage container that is been monitored for changes.
71
+
After setting the connection to the storage, it's required to specify the blob storage container that is being monitored for changes.
70
72
71
73
|Key| Value|
72
74
|--|--|
@@ -75,7 +77,7 @@ The following image shows the first flow:

167
169
168
170
The completion of the uploading and indexing from the first flow will send an HTTP request with the correct callback URL to trigger the second flow. Then, it will retrieve the insights generated by Azure Video Indexer. In this example, it will store the output of your indexing job in your Azure Storage. However, it's up to you what you do with the output.
169
171
170
172
## Create a second flow - JSON extraction
171
173
172
174
Create the second flow, Logic Apps of type consumption. The second flow is triggered based on the callback URL and saves the extracted insights back to a JSON file in Azure Storage.

175
177
176
178
1. Set up the trigger
177
179
178
180
Search for the **When an HTTP request is received**.
179
181
180
-

182
+

181
183
182
184
For the trigger, we'll see an HTTP POST URL field. The URL won’t be generated until after you save your flow; however, you'll need the URL eventually.
183
185
@@ -212,7 +214,7 @@ Create the second flow, Logic Apps of type consumption. The second flow is t
212
214
213
215
\*This expression tells the connecter to get the Video ID from the output of your trigger. In this case, the output of your trigger will be the output of **Upload video and index** in your first trigger.
214
216
215
-

217
+

216
218
217
219
Select **Save** -> **+ New step**.
218
220
1. Create a blob and store the insights JSON.
@@ -228,7 +230,7 @@ Create the second flow, Logic Apps of type consumption. The second flow is t
228
230
| Azure Storage Account name| <* The storage account name where insights will be stored*>. |
229
231
| Azure Storage Account Access key| Go to Azure portal-> my-storage-> under **Security + networking** ->Access keys -> copy one of the keys. |

232
234
1. Select **Create**.
233
235
1. Set the folder in which insights will be stored.
234
236
@@ -239,15 +241,15 @@ Create the second flow, Logic Apps of type consumption. The second flow is t
239
241
| Blob name| From the dynamic content, under the **Get Video Index** section select **Name** and add `_insights.json`, insights file name will be the video name + insights.json |
240
242
| Blob content| From the dynamic content, under the **Get Video Index** section, select the **Body**. |
0 commit comments