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
+28-34Lines changed: 28 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,6 @@ ms.date: 08/04/2022
10
10
11
11
Azure Video Indexer (AVI) [REST API](https://api-portal.videoindexer.ai/api-details#api=Operations&operation=Upload-Video) supports both server-to-server and client-to-server communication. The API enables you to integrate video and audio insights into your application logic. To make the integration easier, we support [Logic Apps](https://azure.microsoft.com/services/logic-apps/) and [Power Automate](https://preview.flow.microsoft.com/connectors/shared_videoindexer-v2/video-indexer-v2/) connectors that are compatible with the Azure Video Indexer API.
12
12
13
-
> [!NOTE]
14
-
> 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.
15
-
16
13
You can use the connectors to set up custom workflows to effectively index and extract insights from a large amount of video and audio files, without writing a single line of code. Furthermore, using the connectors for the integration gives you better visibility on the health of your workflow and an easy way to debug it.
17
14
18
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).
@@ -22,11 +19,8 @@ The "upload and index your video automatically" scenario covered in this article
22
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.
23
20
* The second flow is triggered based on the callback URL and saves the extracted insights back to a JSON file in Azure Storage.
24
21
25
-
> [!TIP]
26
-
> For your convenience:
27
-
> Open separate tabs in a browser for each involved account: Azure Video Indexer, Storage, Logic App.
28
-
>
29
-
> Scan each section a bit ahead to make sure you understand what values should be set while creating the flows.
22
+
> [!NOTE]
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.
30
24
31
25
## Prerequisites
32
26
@@ -133,7 +127,7 @@ The following image shows the first flow:
133
127
>
134
128
> Make sure you have followed the steps to enable the system -assigned managed identity of your Logic Apps.
135
129
136
-

130
+

137
131
1. Set up system assigned managed identity for permission on Azure Video Indexer resource.
138
132
139
133
In the Azure portal, go to your Azure Video Indexer resource/account.
@@ -199,14 +193,14 @@ Create the second flow, Logic Apps of type consumption. The second flow is t
199
193
200
194
1. Search for "Video Indexer".
201
195
1. From **Video Indexer(V2)** chose **Get Video Index** action.
202
-
203
-
Set the connection name:
204
196
205
-
|Key| Value|
206
-
|----|----|
207
-
|Connection name| <*A name for connection*>. For example, `aviconnection`.|
208
-
| API key| This is your personal API key, which is available under **Profile** at the [developer portal](https://api-portal.videoindexer.ai/profile). For more information, see [Subscribe to the API](video-indexer-use-apis.md#subscribe-to-the-api).|
209
-
1. Select **Create**.
197
+
Set the connection name:
198
+
199
+
|Key| Value|
200
+
|----|----|
201
+
|Connection name| <*A name for connection*>. For example, `aviconnection`.|
202
+
| API key| This is your personal API key, which is available under **Profile** at the [developer portal](https://api-portal.videoindexer.ai/profile). For more information, see [Subscribe to the API](video-indexer-use-apis.md#subscribe-to-the-api).|
203
+
1. Select **Create**.
210
204
1. Fill out the required parameters according to the table:
211
205
212
206
|Key| Value|
@@ -226,26 +220,26 @@ Create the second flow, Logic Apps of type consumption. The second flow is t
226
220
1. Search for "Azure blob", from the group of actions.
227
221
1. Select **Create blob(V2)**.
228
222
1. Set the connection to the blob storage that will store the JSON insights files.
229
-
230
-
|Key| Value|
231
-
|----|----|
232
-
| Connection name| <*Enter a connection name*>.|
233
-
| Authentication type |Access Key|
234
-
| Azure Storage Account name| <* The storage account name where insights will be stored*>. |
235
-
| Azure Storage Account Access key| Go to Azure portal-> my-storage-> under **Security + networking** ->Access keys -> copy one of the keys. |
1. Set the folder in which insights will be stored.
240
223
241
-
|Key| Value|
242
-
|----|----|
243
-
|Storage account name| <*Enter the storage account name that would contain the JSON output (in this tutorial is the same as the source video).>*|
244
-
| Folder path | From the dropdown, select the `/insights`|
245
-
| 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 |
246
-
| Blob content| From the dynamic content, under the **Get Video Index**section, select the **Body**. |
224
+
|Key| Value|
225
+
|----|----|
226
+
| Connection name| <*Enter a connection name*>.|
227
+
| Authentication type |Access Key|
228
+
| Azure Storage Account name| <* The storage account name where insights will be stored*>.|
229
+
| Azure Storage Account Access key| Go to Azure portal-> my-storage-> under **Security + networking**->Access keys -> copy one of the keys. |
1. Set the folder in which insights will be stored.
234
+
235
+
|Key| Value|
236
+
|----|----|
237
+
|Storage account name| <*Enter the storage account name that would contain the JSON output (in this tutorial is the same as the source video).>*|
238
+
| Folder path | From the dropdown, select the `/insights`|
239
+
| 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
+
| Blob content| From the dynamic content, under the **Get Video Index** section, select the **Body**. |
0 commit comments