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/ai-services/document-intelligence/disaster-recovery.md
+173-6Lines changed: 173 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,22 +50,189 @@ If your app or business depends on the use of a Document Intelligence custom mod
50
50
51
51
::: moniker-end
52
52
53
-
::: moniker range=">=doc-intel-3.0.0"
53
+
::: moniker range="doc-intel-4.0.0"
54
+
55
+
## Copy API overview
56
+
57
+
The process for copying a custom model consists of the following steps:
58
+
59
+
1. First you issue a copy authorization request to the target resource—that is, the resource that receives the copied model. You receive back the URL of the newly created target model that receives the copied model.
60
+
1. Next you send the copy request to the source resource—the resource that contains the model to be copied with the payload (copy authorization) returned from the previous call. You receive back a URL that you can query to track the progress of the operation.
61
+
1. You use your source resource credentials to query the progress URL until the operation is a success. You can also query the new model ID in the target resource to get the status of the new model
62
+
63
+
## Generate Copy authorization request
64
+
65
+
The following HTTP request gets copy authorization from your target resource. You need to enter the endpoint and key of your target resource as headers.
66
+
67
+
```http
68
+
POST https://<your-resource-name>/documentintelligence/documentModels/{modelId}:copyTo?api-version=2023-10-31-preview
69
+
Ocp-Apim-Subscription-Key: {<your-key>}
70
+
```
71
+
72
+
Request body
73
+
74
+
```json
75
+
{
76
+
"modelId": "target-model-name",
77
+
"description": "Copied from SCUS"
78
+
}
79
+
```
80
+
81
+
You receive a `200` response code with response body that contains the JSON payload required to initiate the copy.
The following HTTP request starts the copy operation on the source resource. You need to enter the endpoint and key of your source resource as the url and header. Notice that the request URL contains the model ID of the source model you want to copy.
97
+
98
+
```http
99
+
POST https://<your-resource-name>/documentintelligence/documentModels/{modelId}:copyTo?api-version=2023-10-31-preview
100
+
Ocp-Apim-Subscription-Key: {<your-key>}
101
+
```
102
+
103
+
The body of your request is the response from the previous step.
You receive a `202\Accepted` response with an Operation-Location header. This value is the URL that you use to track the progress of the operation. Copy it to a temporary location for the next step.
> The Copy API transparently supports the [AEK/CMK](https://msazure.visualstudio.com/Cognitive%20Services/_wiki/wikis/Cognitive%20Services.wiki/52146/Customer-Managed-Keys) feature. This doesn't require any special treatment, but note that if you're copying between an unencrypted resource to an encrypted resource, you need to include the request header `x-ms-forms-copy-degrade: true`. If this header is not included, the copy operation will fail and return a `DataProtectionTransformServiceError`.
125
+
126
+
## Track Copy progress
127
+
128
+
```console
129
+
GET https://<your-resource-name>.cognitiveservices.azure.com/documentintelligence/operations/{<operation-id>}?api-version=2023-10-31-preview
130
+
Ocp-Apim-Subscription-Key: {<your-key>}
131
+
```
132
+
133
+
### Track the target model ID
134
+
135
+
You can also use the **[Get model](/rest/api/aiservices/document-models/get-model?view=rest-aiservices-2023-07-31&preserve-view=true&tabs=HTTP)** API to track the status of the operation by querying the target model. Call the API using the target model ID that you copied down from the [Generate Copy authorization request](#generate-copy-authorization-request) response.
136
+
137
+
```http
138
+
GET https://<your-resource-name>/documentintelligence/documentModels/{modelId}?api-version=2023-10-31-preview" -H "Ocp-Apim-Subscription-Key: <your-key>
139
+
```
140
+
141
+
In the response body, you see information about the model. Check the `"status"` field for the status of the model.
The following code snippets use cURL to make API calls. You also need to fill in the model IDs and subscription information specific to your own resources.
152
+
153
+
### Generate Copy authorization
154
+
155
+
**Request**
156
+
157
+
```bash
158
+
curl -i -X POST "<your-resource-name>/documentintelligence/documentModels:authorizeCopy?api-version=2023-10-31-preview"
159
+
-H "Content-Type: application/json"
160
+
-H "Ocp-Apim-Subscription-Key: <YOUR-KEY>"
161
+
--data-ascii "{
162
+
'modelId': '{modelId}',
163
+
'description': '{description}'
164
+
}"
165
+
```
166
+
167
+
**Successful response**
168
+
169
+
```json
170
+
{
171
+
"targetResourceId": "string",
172
+
"targetResourceRegion": "string",
173
+
"targetModelId": "string",
174
+
"targetModelLocation": "string",
175
+
"accessToken": "string",
176
+
"expirationDateTime": "string"
177
+
}
178
+
```
179
+
180
+
### Begin Copy operation
181
+
182
+
**Request**
183
+
184
+
```bash
185
+
curl -i -X POST "<your-resource-name>/documentintelligence/documentModels/{modelId}:copyTo?api-version=2023-10-31-preview"
You can use the [**Get operation**](/rest/api/aiservices/miscellaneous/get-operation?view=rest-aiservices-2023-07-31&preserve-view=true&tabs=HTTP) API to list all document model operations (succeeded, in-progress, or failed) associated with your Document Intelligence resource. Operation information only persists for 24 hours. Here's a list of the operations (operationId) that can be returned:
209
+
210
+
* documentModelBuild
211
+
* documentModelCompose
212
+
* documentModelCopyTo
213
+
214
+
### Track the target model ID
215
+
216
+
If the operation was successful, the document model can be accessed using the [**getModel**](/rest/api/aiservices/document-models/get-model?view=rest-aiservices-2023-07-31&preserve-view=true&tabs=HTTP) (get a single model), or [**GetModels**](/rest/api/aiservices/document-models/get-model?view=rest-aiservices-2023-07-31&preserve-view=true&tabs=HTTPs) (get a list of models) APIs.
The process for copying a custom model consists of the following steps:
58
225
59
226
1. First you issue a copy authorization request to the target resource—that is, the resource that receives the copied model. You receive back the URL of the newly created target model that receives the copied model.
60
227
1. Next you send the copy request to the source resource—the resource that contains the model to be copied with the payload (copy authorization) returned from the previous call. You receive back a URL that you can query to track the progress of the operation.
61
-
1. You use your source resource credentials to query the progress URL until the operation is a success. With v3.0, you can also query the new model ID in the target resource to get the status of the new model.
228
+
1. You use your source resource credentials to query the progress URL until the operation is a success. You can also query the new model ID in the target resource to get the status of the new model
62
229
63
230
## Generate Copy authorization request
64
231
65
232
The following HTTP request gets copy authorization from your target resource. You need to enter the endpoint and key of your target resource as headers.
66
233
67
234
```http
68
-
POST https://{TARGET_FORM_RECOGNIZER_RESOURCE_ENDPOINT}/formrecognizer/documentModels:authorizeCopy?api-version=2023-07-31
235
+
POST https://{TARGET_FORM_RECOGNIZER_RESOURCE_ENDPOINT}/formrecognizer/documentModels:authorizeCopy?api-version=2023-10-31-preview
You can also use the **[Get model](/rest/api/aiservices/document-models/get-model?view=rest-aiservices-2023-07-31&preserve-view=true&tabs=HTTP)** API to track the status of the operation by querying the target model. Call the API using the target model ID that you copied down from the [Generate Copy authorization request](#generate-copy-authorization-request) response.
136
303
137
304
```http
138
-
GET https://{YOUR-ENDPOINT}/formrecognizer/documentModels/{modelId}?api-version=2023-07-31" -H "Ocp-Apim-Subscription-Key: {YOUR-KEY}
305
+
GET https://{YOUR-ENDPOINT}/formrecognizer/documentModels/{modelId}?api-version=2023-07-31" -H "Ocp-Apim-Subscription-Key: <YOUR-KEY>
139
306
```
140
307
141
308
In the response body, you see information about the model. Check the `"status"` field for the status of the model.
@@ -157,7 +324,7 @@ The following code snippets use cURL to make API calls. You also need to fill in
157
324
```bash
158
325
curl -i -X POST "{YOUR-ENDPOINT}formrecognizer/documentModels:authorizeCopy?api-version=2023-07-31"
159
326
-H "Content-Type: application/json"
160
-
-H "Ocp-Apim-Subscription-Key: {YOUR-KEY}"
327
+
-H "Ocp-Apim-Subscription-Key: <YOUR-KEY>"
161
328
--data-ascii "{
162
329
'modelId': '{modelId}',
163
330
'description': '{description}'
@@ -184,7 +351,7 @@ curl -i -X POST "{YOUR-ENDPOINT}formrecognizer/documentModels:authorizeCopy?api-
184
351
```bash
185
352
curl -i -X POST "{YOUR-ENDPOINT}/formrecognizer/documentModels/{modelId}:copyTo?api-version=2023-07-31"
Copy file name to clipboardExpand all lines: articles/ai-services/document-intelligence/includes/preview-notice.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,3 +16,8 @@ ms.date: 11/21/2023
16
16
> * Document Intelligence public preview releases provide early access to features that are in active development.
17
17
> * Features, approaches, and processes may change, prior to General Availability (GA), based on user feedback.
18
18
> * The public preview version of Document Intelligence client libraries default to REST API version [**2023-10-31-preview**](/rest/api/aiservices/document-models/analyze-document?view=rest-aiservices-2023-10-31-preview&preserve-view=true&tabs=HTTP).
19
+
> * Public preview version [**2023-10-31-preview**](/rest/api/aiservices/document-models/analyze-document?view=rest-aiservices-2023-10-31-preview&preserve-view=true&tabs=HTTP) is currently only available in the following Azure regions:
Copy file name to clipboardExpand all lines: articles/ai-services/document-intelligence/whats-new.md
+11-3Lines changed: 11 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,11 +24,19 @@ ms.custom:
24
24
25
25
Document Intelligence service is updated on an ongoing basis. Bookmark this page to stay up to date with release notes, feature enhancements, and our newest documentation.
26
26
27
+
## December 2023
28
+
29
+
The [Document Intelligence SDKs](sdk-overview-v4-0.md) targeting REST API **2023-10-31-preview** are now available for use!
30
+
27
31
## November 2023
28
32
29
-
Document Intelligence **2023-10-31-preview**
33
+
The Document Intelligence [**2023-10-31-preview**](https://westus.dev.cognitive.microsoft.com/docs/services?pattern=intelligence) REST API is now available. This preview API introduces new and updated capabilities:
34
+
35
+
* Public preview version [**2023-10-31-preview**](/rest/api/aiservices/document-models/analyze-document?view=rest-aiservices-2023-10-31-preview&preserve-view=true&tabs=HTTP) is currently only available in the following Azure regions:
30
36
31
-
The Document Intelligence [**2023-10-31-preview**](https://westus.dev.cognitive.microsoft.com/docs/services?pattern=intelligence) REST API is now available for use! This preview API introduces new and updated capabilities:
37
+
***East US**
38
+
***West US2**
39
+
***West Europe**
32
40
33
41
*[Read model](concept-contract.md)
34
42
* Language Expansion for Handwriting: Russian(`ru`), Arabic(`ar`), Thai(`th`).
@@ -99,7 +107,7 @@ The v3.1 API introduces new and updated capabilities:
99
107
* Document Intelligence now supports more sophisticated analysis capabilities and the Studio allows one entry point (Analyze options button) for configuring the add-on capabilities with ease.
100
108
* Depending on the document extraction scenario, configure the analysis range, document page range, optional detection, and premium detection features.
101
109
102
-
:::image type="content" source="media/studio/analyze-options.gif" alt-text="Animated screenshot showing use of the analyzeoptions button to configure options in Studio.":::
110
+
:::image type="content" source="media/studio/analyze-options.gif" alt-text="Animated screenshot showing use of the analyze-options button to configure options in Studio.":::
103
111
104
112
> [!NOTE]
105
113
> Font extraction is not visualized in Document Intelligence Studio. However, you can check the styles section of the JSON output for the font detection results.
0 commit comments