Skip to content

Commit 2c20cb6

Browse files
committed
resolve build errors
1 parent 86f2a33 commit 2c20cb6

File tree

2 files changed

+61
-35
lines changed

2 files changed

+61
-35
lines changed

articles/ai-services/document-intelligence/containers/image-tags.md

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,18 @@ ms.author: lajanuar
1414

1515
<!-- markdownlint-disable MD051 -->
1616

17-
:::moniker range="doc-intel-2.1.0 || doc-intel-4.0.0"
17+
:::moniker range="doc-intel-2.1.0"
1818

19-
Document Intelligence doesn't support containers for v4.0. Support for containers is currently available with Document Intelligence version `2022-08-31 (GA)` for all models and `2023-07-31 (GA)` for Read, Layout, Invoice, Receipt, and ID Document models:
19+
Support for containers is currently available with Document Intelligence version `2022-08-31 (GA)` for all models, `2023-07-31 (GA)` for Read, Layout, Invoice, Receipt, and ID Document models, and `2024-11-30 (GA)` for Layout model:
2020

2121
* [REST API `2022-08-31 (GA)`](/rest/api/aiservices/document-models/analyze-document?view=rest-aiservices-v3.0%20(2022-08-31)&preserve-view=true&tabs=HTTP)
2222
* [REST API `2023-07-31 (GA)`](/rest/api/aiservices/document-models/analyze-document?view=rest-aiservices-v3.1%20(2023-07-31)&tabs=HTTP&preserve-view=true)
23+
* [REST API `2024-11-30 (GA)`](/rest/api/aiservices/document-models/analyze-document?view=rest-aiservices-v4.0%20(2024-11-30)&tabs=HTTP&preserve-view=true)
2324
* [Client libraries targeting `REST API 2022-08-31 (GA)`](../sdk-overview-v3-0.md)
2425
* [Client libraries targeting `REST API 2023-07-31 (GA)`](../sdk-overview-v3-1.md)
26+
* [Client libraries targeting `REST API 2024-11-30 (GA)`](../sdk-overview-v4-0.md)
2527

26-
✔️ See [**Document Intelligence v3.0 container image tags**](?view=doc-intel-3.0.0&preserve-view=true) or [**Document Intelligence v3.1 container image tags**](?view=doc-intel-3.1.0&preserve-view=true) for supported versions of container documentation.
28+
✔️ See [**Document Intelligence v3.0 container image tags**](?view=doc-intel-3.0.0&preserve-view=true) or [**Document Intelligence v3.1 container image tags**](?view=doc-intel-3.1.0&preserve-view=true) or [**Document Intelligence v4.0 container image tags**](?view=doc-intel-4.0.0&preserve-view=true) for supported versions of container documentation.
2729

2830
:::moniker-end
2931

@@ -72,11 +74,26 @@ The following containers support DocumentIntelligence v3.1 models and features:
7274

7375
::: moniker-end
7476

77+
::: moniker range="doc-intel-4.0.0"
78+
**This content applies to:** ![checkmark](../media/yes-icon.png) **v4.0 (GA)**
79+
80+
## Microsoft container registry (MCR)
81+
82+
Document Intelligence container images can be found within the [**Microsoft Artifact Registry** (also know as Microsoft Container Registry(MCR))](https://mcr.microsoft.com/catalog?search=document%20intelligence), the primary registry for all Microsoft published container images.
83+
84+
The following containers support DocumentIntelligence v3.1 models and features:
85+
86+
| Container name |image |
87+
|---|---|
88+
| [**Layout 4.0**](https://mcr.microsoft.com/en-us/product/azure-cognitive-services/form-recognizer/layout-4.0/tags) |`mcr.microsoft.com/azure-cognitive-services/form-recognizer/layout-4.0:latest`|
89+
::: moniker-end
90+
91+
7592
:::moniker range="doc-intel-2.1.0"
7693

7794
> [!IMPORTANT]
7895
>
79-
> Document Intelligence v3.0 containers are now generally available. If you are getting started with containers, consider using the v3 containers.
96+
> Document Intelligence v3.0 containers are now generally available. If you're getting started with containers, consider using the v3 containers.
8097
The following containers:
8198

8299
## Feature containers
@@ -100,4 +117,4 @@ Document Intelligence containers support the following features:
100117

101118
> [!div class="nextstepaction"]
102119
> [Install and run Document Intelligence containers](install-run.md)
103-
:::moniker-end
120+
:::moniker-end

articles/ai-services/document-intelligence/containers/install-run.md

Lines changed: 39 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: laujan
66
manager: nitinme
77
ms.service: azure-ai-document-intelligence
88
ms.topic: how-to
9-
ms.date: 01/22/2025
9+
ms.date: 04/03/2025
1010
ms.author: lajanuar
1111
---
1212

@@ -134,37 +134,8 @@ Feature container | Supporting containers |
134134
> [!IMPORTANT]
135135
> The keys are used to access your Document Intelligence resource. Do not share your keys. Store them securely, for example, using Azure Key Vault. We also recommend regenerating these keys regularly. Only one key is necessary to make an API call. When regenerating the first key, you can use the second key for continued access to the service.
136136
137-
### [Layout](#tab/layout)
138-
139-
The following code sample is a self-contained `docker compose` example to run the Document Intelligence Layout container. With `docker compose`, you use a YAML file to configure your application's services. Then, with `docker-compose up` command, you create and start all the services from your configuration. Enter {FORM_RECOGNIZER_ENDPOINT_URI} and {FORM_RECOGNIZER_KEY} values for your Layout container instance.
140-
141-
```yml
142-
version: "3.9"
143-
services:
144-
azure-form-recognizer-layout:
145-
container_name: azure-form-recognizer-layout
146-
image: mcr.microsoft.com/azure-cognitive-services/form-recognizer/layout-4.0
147-
environment:
148-
- EULA=accept
149-
- billing={FORM_RECOGNIZER_ENDPOINT_URI}
150-
- apiKey={FORM_RECOGNIZER_KEY}
151-
ports:
152-
- "5000:5000"
153-
networks:
154-
- ocrvnet
155-
networks:
156-
ocrvnet:
157-
driver: bridge
158-
```
159-
160-
Now, you can start the service with the [**docker compose**](https://docs.docker.com/compose/) command:
161-
162-
```bash
163-
docker-compose up
164-
```
165137
::: moniker-end
166138
167-
168139
:::moniker range="doc-intel-3.0.0 || doc-intel-3.1.0"
169140
170141
## Run the container with the **docker-compose up** command
@@ -243,6 +214,41 @@ docker-compose up
243214

244215
Given the resources on the machine, the General Document container might take some time to start up.
245216

217+
::: moniker-end
218+
219+
:::moniker range="doc-intel-4.0.0"
220+
### [Layout](#tab/layout)
221+
222+
The following code sample is a self-contained `docker compose` example to run the Document Intelligence Layout container. With `docker compose`, you use a YAML file to configure your application's services. Then, with `docker-compose up` command, you create and start all the services from your configuration. Enter {FORM_RECOGNIZER_ENDPOINT_URI} and {FORM_RECOGNIZER_KEY} values for your Layout container instance.
223+
224+
```yml
225+
version: "3.9"
226+
services:
227+
azure-form-recognizer-layout:
228+
container_name: azure-form-recognizer-layout
229+
image: mcr.microsoft.com/azure-cognitive-services/form-recognizer/layout-4.0
230+
environment:
231+
- EULA=accept
232+
- billing={FORM_RECOGNIZER_ENDPOINT_URI}
233+
- apiKey={FORM_RECOGNIZER_KEY}
234+
ports:
235+
- "5000:5000"
236+
networks:
237+
- ocrvnet
238+
networks:
239+
ocrvnet:
240+
driver: bridge
241+
```
242+
243+
Now, you can start the service with the [**docker compose**](https://docs.docker.com/compose/) command:
244+
245+
```bash
246+
docker-compose up
247+
```
248+
::: moniker-end
249+
250+
:::moniker range="doc-intel-3.0.0 || doc-intel-3.1.0"
251+
246252
### [Layout](#tab/layout)
247253

248254
The following code sample is a self-contained `docker compose` example to run the Document Intelligence Layout container. With `docker compose`, you use a YAML file to configure your application's services. Then, with `docker-compose up` command, you create and start all the services from your configuration. Enter {FORM_RECOGNIZER_ENDPOINT_URI} and {FORM_RECOGNIZER_KEY} values for your Layout container instance.
@@ -271,6 +277,9 @@ Now, you can start the service with the [**docker compose**](https://docs.docker
271277
```bash
272278
docker-compose up
273279
```
280+
::: moniker-end
281+
282+
:::moniker range="doc-intel-3.0.0 || doc-intel-3.1.0"
274283

275284
### [Invoice](#tab/invoice)
276285

0 commit comments

Comments
 (0)