Skip to content

Commit 0e029bf

Browse files
committed
formatting updates
1 parent e9dd15c commit 0e029bf

File tree

3 files changed

+17
-15
lines changed

3 files changed

+17
-15
lines changed

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

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@ You can use the connectors to set up custom workflows to effectively index and e
1414

1515
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).
1616

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

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

2222
> [!NOTE]
2323
> 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).
2426
2527
## Prerequisites
2628

@@ -36,7 +38,7 @@ In this section you'll, you create the following flow. The first flow is tri
3638

3739
The following image shows the first flow:
3840

39-
![File upload flow](./media/logic-apps-connector-arm-accounts/first-flow-high-level.png)
41+
![Screenshot of the file upload flow.](./media/logic-apps-connector-arm-accounts/first-flow-high-level.png)
4042

4143
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`.
4244

@@ -49,7 +51,7 @@ The following image shows the first flow:
4951
1. Select the **Logic app designer** tab, in the pane on the left.
5052
1. Pick a **Blank Logic App** flow.
5153
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.
5355
1. Under **Triggers**, select the **When a blob is added or modified (properties only) (V2)** trigger.
5456
1. Set the storage connection.
5557

@@ -66,7 +68,7 @@ The following image shows the first flow:
6668

6769
![Select a trigger](./media/logic-apps-connector-arm-accounts/trigger.png)
6870

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

7173
|Key| Value|
7274
|--|--|
@@ -75,7 +77,7 @@ The following image shows the first flow:
7577
7678
Select **Save** -> **+New step**
7779

78-
![storage container trigger](./media/logic-apps-connector-arm-accounts/storage-container-trigger.png)
80+
![Screenshot of the storage container trigger.](./media/logic-apps-connector-arm-accounts/storage-container-trigger.png)
7981
1. Create SAS URI by path action.
8082

8183
1. Select the **Action** tab.
@@ -91,7 +93,7 @@ The following image shows the first flow:
9193

9294
Select **Save** (at the top of the page).
9395

94-
![Create SAS URI by path](./media/logic-apps-connector-arm-accounts/create-sas.png)
96+
![Screenshot of the create SAS URI by path logic.](./media/logic-apps-connector-arm-accounts/create-sas.png)
9597

9698
Select **+New Step**.
9799
1. Generate an access token.
@@ -110,7 +112,7 @@ The following image shows the first flow:
110112
| Body|`{ "permissionType": "Contributor", "scope": "Account" }` |
111113
| Add new parameter | **Authentication** |
112114

113-
![HTTP access token](./media/logic-apps-connector-arm-accounts/http-with-param.png)
115+
![Screenshot of the HTTP access token.](./media/logic-apps-connector-arm-accounts/http-with-param.png)
114116

115117
After the **Authentication** parameter is added, fill the required parameters according to the table below:
116118

@@ -127,7 +129,7 @@ The following image shows the first flow:
127129
>
128130
> Make sure you have followed the steps to enable the system -assigned managed identity of your Logic Apps.
129131
130-
![Enable the system assigned managed identity](./media/logic-apps-connector-arm-accounts/enable-system.png)
132+
![Screenshot of the how to enable the system assigned managed identity.](./media/logic-apps-connector-arm-accounts/enable-system.png)
131133
1. Set up system assigned managed identity for permission on Azure Video Indexer resource.
132134

133135
In the Azure portal, go to your Azure Video Indexer resource/account.
@@ -163,21 +165,21 @@ The following image shows the first flow:
163165
|Video URL|Select **Web Url** from the dynamic content of **Create SAS URI by path** action.|
164166
| Body| Can be left as default.|
165167
166-
![upload-video](./media/logic-apps-connector-arm-accounts/uplaod-and-index.png)
168+
![Screenshot of the upload and index action.](./media/logic-apps-connector-arm-accounts/upload-and-index.png)
167169

168170
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.
169171

170172
## Create a second flow - JSON extraction
171173

172174
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.
173175

174-
![high-level-flow](./media/logic-apps-connector-arm-accounts/second-flow-high-level.png)
176+
![Screenshot of the high level flow.](./media/logic-apps-connector-arm-accounts/second-flow-high-level.png)
175177

176178
1. Set up the trigger
177179

178180
Search for the **When an HTTP request is received**.
179181

180-
![Set up the trigger](./media/logic-apps-connector-arm-accounts/serach-trigger.png)
182+
![Screenshot of the set up the trigger.](./media/logic-apps-connector-arm-accounts/serach-trigger.png)
181183

182184
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.
183185

@@ -212,7 +214,7 @@ Create the second flow, Logic Apps of type consumption. The second flow is t
212214

213215
\*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.
214216

215-
![Upload video and index](./media/logic-apps-connector-arm-accounts/get-video-index.png)
217+
![Screenshot of the upload and index a video action.](./media/logic-apps-connector-arm-accounts/get-video-index.png)
216218

217219
Select **Save** -> **+ New step**.
218220
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
228230
| Azure Storage Account name| <* The storage account name where insights will be stored*>. |
229231
| Azure Storage Account Access key| Go to Azure portal-> my-storage-> under **Security + networking** ->Access keys -> copy one of the keys. |
230232

231-
![Create blob action](./media/logic-apps-connector-arm-accounts/storage-connection.png)
233+
![Screenshot of the create blob action.](./media/logic-apps-connector-arm-accounts/storage-connection.png)
232234
1. Select **Create**.
233235
1. Set the folder in which insights will be stored.
234236

@@ -239,15 +241,15 @@ Create the second flow, Logic Apps of type consumption. The second flow is t
239241
| 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 |
240242
| Blob content| From the dynamic content, under the **Get Video Index** section, select the **Body**. |
241243
242-
![Store blob content](./media/logic-apps-connector-arm-accounts/create-blob.png)
244+
![Screenshot of the store blob content action.](./media/logic-apps-connector-arm-accounts/create-blob.png)
243245
1. Select **Save flow**.
244246
1. Update the callback URL to get notified when an index job is finished.
245247

246248
Once the flow is saved, an HTTP POST URL is created in the trigger.
247249

248250
1. Copy the URL from the trigger.
249251

250-
![Save URL trigger](./media/logic-apps-connector-arm-accounts/http-callback-url.png)
252+
![Screenshot of the save URL trigger.](./media/logic-apps-connector-arm-accounts/http-callback-url.png)
251253
1. Go back to the first flow and paste the URL in the **Upload video and index** action for the **Callback URL parameter**.
252254

253255
Make sure both flows are saved.

0 commit comments

Comments
 (0)