Skip to content

Commit e9dd15c

Browse files
committed
formatting updates
1 parent 4e909c0 commit e9dd15c

File tree

1 file changed

+28
-34
lines changed

1 file changed

+28
-34
lines changed

articles/azure-video-indexer/logic-apps-connector-arm-accounts.md

Lines changed: 28 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ ms.date: 08/04/2022
1010

1111
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.
1212

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-
1613
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.
1714

1815
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
2219
* 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.
2320
* The second flow is triggered based on the callback URL and saves the extracted insights back to a JSON file in Azure Storage.
2421

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.
3024
3125
## Prerequisites
3226

@@ -133,7 +127,7 @@ The following image shows the first flow:
133127
>
134128
> Make sure you have followed the steps to enable the system -assigned managed identity of your Logic Apps.
135129
136-
![Enable the system assigned managed identity](./media/logic-apps-connector-arm-accounts/enable-system.png)
130+
![Enable the system assigned managed identity](./media/logic-apps-connector-arm-accounts/enable-system.png)
137131
1. Set up system assigned managed identity for permission on Azure Video Indexer resource.
138132

139133
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
199193

200194
1. Search for "Video Indexer".
201195
1. From **Video Indexer(V2)** chose **Get Video Index** action.
202-
203-
Set the connection name:
204196

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**.
210204
1. Fill out the required parameters according to the table:
211205

212206
|Key| Value|
@@ -226,26 +220,26 @@ Create the second flow, Logic Apps of type consumption. The second flow is t
226220
1. Search for "Azure blob", from the group of actions.
227221
1. Select **Create blob(V2)**.
228222
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. |
236-
237-
![Create blob action](./media/logic-apps-connector-arm-accounts/storage-connection.png)
238-
1. Select **Create**.
239-
1. Set the folder in which insights will be stored.
240223

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

248-
![Store blob content](./media/logic-apps-connector-arm-accounts/create-blob.png)
231+
![Create blob action](./media/logic-apps-connector-arm-accounts/storage-connection.png)
232+
1. Select **Create**.
233+
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**. |
241+
242+
![Store blob content](./media/logic-apps-connector-arm-accounts/create-blob.png)
249243
1. Select **Save flow**.
250244
1. Update the callback URL to get notified when an index job is finished.
251245

0 commit comments

Comments
 (0)