Skip to content

Commit 7df1cb8

Browse files
committed
Merge branch 'main'
2 parents 1e60289 + b036d02 commit 7df1cb8

File tree

617 files changed

+9042
-10998
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

617 files changed

+9042
-10998
lines changed

.openpublishing.publish.config.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,6 +1189,12 @@
11891189
"url": "https://github.com/Azure-Samples/explore-iot-operations",
11901190
"branch": "main",
11911191
"branch_mapping": {}
1192+
},
1193+
{
1194+
"path_to_root": "SupportArticles-docs",
1195+
"url": "https://github.com/MicrosoftDocs/SupportArticles-docs",
1196+
"branch": "main",
1197+
"branch_mapping": {}
11921198
}
11931199
],
11941200
"branch_target_mapping": {

.openpublishing.redirection.iot-develop.json

Lines changed: 182 additions & 97 deletions
Large diffs are not rendered by default.

.openpublishing.redirection.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1712,12 +1712,22 @@
17121712
},
17131713
{
17141714
"source_path_from_root": "/articles/guides/developer/index.md",
1715-
"redirect_url": "/azure/guides/developer/azure-developer-guide",
1715+
"redirect_url": "/azure/developer/",
1716+
"redirect_document_id": false
1717+
},
1718+
{
1719+
"source_path_from_root": "/articles/guides/developer/azure-developer-guide.md",
1720+
"redirect_url": "/azure/developer/",
17161721
"redirect_document_id": false
17171722
},
17181723
{
17191724
"source_path_from_root": "/articles/guides/operations/index.md",
1720-
"redirect_url": "/azure/guides/operations/azure-operations-guide",
1725+
"redirect_url": "/azure/developer/intro/azure-developer-key-concepts",
1726+
"redirect_document_id": false
1727+
},
1728+
{
1729+
"source_path_from_root": "/articles/guides/operations/azure-operations-guide.md",
1730+
"redirect_url": "/azure/developer/intro/azure-developer-key-concepts",
17211731
"redirect_document_id": false
17221732
},
17231733
{

articles/ai-services/Anomaly-Detector/faq.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ metadata:
88
ms.date: 01/18/2024
99
ms.author: jingruhan
1010
author: jr-MS
11-
ms.manager: nitinme
11+
manager: nitinme
1212
title: Anomaly Detector frequently asked questions
1313
summary: This article contains answers to frequently asked troubleshooting questions about the Anomaly Detector service.
1414

1515
sections:
1616

1717
- name: Anomaly Detector frequently asked questions
18-
questions:
18+
questions:
1919
- question: |
2020
When will Anomaly Detector be deprecated?
2121
answer: |

articles/ai-services/LUIS/index.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ metadata:
77
ms.topic: landing-page
88
ms.date: 01/19/2024
99
ms.author: aahi
10-
ms.manager: nitinme
1110
author: aahill
11+
manager: nitinme
1212
ms.service: azure-ai-language
1313
ms.subservice: azure-ai-luis
1414
#services: cognitive-services

articles/ai-services/LUIS/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ items:
9292
href: luis-how-to-collaborate.md
9393
- name: With versions
9494
href: luis-how-to-manage-versions.md
95-
diplayName: import, export, container
95+
displayName: import, export, container
9696
- name: With Traffic Manager
9797
href: luis-traffic-manager.md
9898
- name: Use containers

articles/ai-services/document-intelligence/concept-invoice.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ Following are the line items extracted from an invoice in the JSON output respon
234234
| Amount | Number | The amount of the line item | $60.00 | 100 |
235235
| Description | String | The text description for the invoice line item | Consulting service | Consulting service |
236236
| Quantity | Number | The quantity for this invoice line item | 2 | 2 |
237+
| OrderQuantity | Number | The ordered quantity for this line item. May differ from the quantity shipped and invoiced | 3 | 3 |
237238
| UnitPrice | Number | The net or gross price (depending on the gross invoice setting of the invoice) of one unit of this item | $30.00 | 30 |
238239
| ProductCode | String| Product code, product number, or SKU associated with the specific line item | A123 | |
239240
| Unit | String| The unit of the line item, e.g, kg, lb etc. | Hours | |
@@ -301,6 +302,28 @@ The following are the line items extracted from an invoice in the JSON output re
301302
| Date | date| Date corresponding to each line item. Often it's a date the line item was shipped | 3/4/2021| 2021-03-04 |
302303
| Tax | number | Tax associated with each line item. Possible values include tax amount, tax %, and tax Y/N | 10% | |
303304

305+
The following are complex fields extracted from an invoice in the JSON output response:
306+
307+
### TaxDetails
308+
Tax details aims at breaking down the different taxes applied to the invoice total.
309+
310+
|Name| Type | Description | Text (line item #1) | Value (standardized output) |
311+
|:-----|:----|:----|:----| :----|
312+
| Items | string | Full string text line of the tax item | V.A.T. 15% $60.00 | |
313+
| Amount | number | The tax amount of the tax item | 60.00 | 60 |
314+
| Rate | string | The tax rate of the tax item | 15% | |
315+
316+
### PaymentDetails
317+
List all the detected payment options detected on the field.
318+
319+
|Name| Type | Description | Text (line item #1) | Value (standardized output) |
320+
|:-----|:----|:----|:----| :----|
321+
| IBAN | string | Internal Bank Account Number | GB33BUKB20201555555555 | |
322+
| SWIFT | string | SWIFT code | BUKBGB22 | |
323+
| BPayBillerCode | string | Australian B-Pay Biller Code | 12345 | |
324+
| BPayReference | string | Australian B-Pay Reference Code | 98765432100 | |
325+
326+
304327
### JSON output
305328

306329
The JSON output has three parts:

articles/ai-services/document-intelligence/how-to-guides/includes/v4-0/javascript-sdk.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Create a Node.js Express application.
7979
1. Install the `ai-document-intelligence` client library and `azure/identity` npm packages:
8080

8181
```console
82-
npm i @azure/[email protected] @azure/identity
82+
npm i @azure-rest/[email protected] @azure/identity
8383
```
8484

8585
Your app's *package.json* file is updated with the dependencies.
@@ -106,7 +106,7 @@ Open the `index.js` file in Visual Studio Code or your favorite IDE and select o
106106
## Use the Read model
107107

108108
```javascript
109-
const { AzureKeyCredential, DocumentIntelligence } = require("@azure/ai-document-intelligence");
109+
const { AzureKeyCredential, DocumentIntelligence } = require("@azure-rest/ai-document-intelligence");
110110

111111
//use your `key` and `endpoint` environment variables
112112
const key = process.env['DI_KEY'];
@@ -202,7 +202,7 @@ Visit the Azure samples repository on GitHub and view the [`read` model output](
202202
## Use the Layout model
203203

204204
```javascript
205-
const { AzureKeyCredential, DocumentIntelligence } = require("@azure/ai-document-intelligence");
205+
const { AzureKeyCredential, DocumentIntelligence } = require("@azure-rest/ai-document-intelligence");
206206

207207
//use your `key` and `endpoint` environment variables
208208
const key = process.env['DI_KEY'];
@@ -272,7 +272,7 @@ Visit the Azure samples repository on GitHub and view the [layout model output](
272272
## Use the General document model
273273

274274
```javascript
275-
const { AzureKeyCredential, DocumentIntelligence } = require("@azure/ai-document-intelligence");
275+
const { AzureKeyCredential, DocumentIntelligence } = require("@azure-rest/ai-document-intelligence");
276276

277277
//use your `key` and `endpoint` environment variables
278278
const key = process.env['DI_KEY'];
@@ -318,7 +318,7 @@ Visit the Azure samples repository on GitHub and view the [general document mode
318318
## Use the W-2 tax model
319319

320320
```javascript
321-
const { AzureKeyCredential, DocumentIntelligence } = require("@azure/ai-document-intelligence");
321+
const { AzureKeyCredential, DocumentIntelligence } = require("@azure-rest/ai-document-intelligence");
322322

323323
//use your `key` and `endpoint` environment variables
324324
const key = process.env['DI_KEY'];
@@ -397,7 +397,7 @@ Visit the Azure samples repository on GitHub and view the [W-2 tax model output]
397397
## Use the Invoice model
398398

399399
```javascript
400-
const { AzureKeyCredential, DocumentIntelligence } = require("@azure/ai-document-intelligence");
400+
const { AzureKeyCredential, DocumentIntelligence } = require("@azure-rest/ai-document-intelligence");
401401

402402
//use your `key` and `endpoint` environment variables
403403
const key = process.env['DI_KEY'];
@@ -459,7 +459,7 @@ Visit the Azure samples repository on GitHub and view the [invoice model output]
459459
## Use the Receipt model
460460
461461
```javascript
462-
const { AzureKeyCredential, DocumentIntelligence } = require("@azure/ai-document-intelligence");
462+
const { AzureKeyCredential, DocumentIntelligence } = require("@azure-rest/ai-document-intelligence");
463463

464464
//use your `key` and `endpoint` environment variables
465465
const key = process.env['DI_KEY'];
@@ -518,7 +518,7 @@ Visit the Azure samples repository on GitHub and view the [receipt model output]
518518
## Use the ID document model
519519
520520
```javascript
521-
const { AzureKeyCredential, DocumentIntelligence } = require("@azure/ai-document-intelligence");
521+
const { AzureKeyCredential, DocumentIntelligence } = require("@azure-rest/ai-document-intelligence");
522522

523523
//use your `key` and `endpoint` environment variables
524524
const key = process.env['DI_KEY'];

articles/ai-services/document-intelligence/how-to-guides/includes/v4-0/python-sdk.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ def analyze_read():
9898
# sample document
9999
formUrl = "https://raw.githubusercontent.com/Azure-Samples/cognitive-services-REST-api-samples/master/curl/form-recognizer/rest-api/read.png"
100100

101-
document_intelligence_client = DocumentIntelligenceClient(
101+
client = DocumentIntelligenceClient(
102102
endpoint=endpoint, credential=AzureKeyCredential(key)
103103
)
104104

105-
poller = document_intelligence_client.begin_analyze_document(
105+
poller = client.begin_analyze_document(
106106
"prebuilt-read", formUrl
107107
)
108108
result = poller.result()
@@ -174,11 +174,11 @@ def analyze_layout():
174174
# sample document
175175
formUrl = "https://raw.githubusercontent.com/Azure-Samples/cognitive-services-REST-api-samples/master/curl/form-recognizer/rest-api/layout.png"
176176

177-
document_intelligence_client = DocumentIntelligenceClient(
177+
client = DocumentIntelligenceClient(
178178
endpoint=endpoint, credential=AzureKeyCredential(key)
179179
)
180180

181-
poller = document_intelligence_client.begin_analyze_document(
181+
poller = client.begin_analyze_document(
182182
"prebuilt-layout", formUrl
183183
)
184184
result = poller.result()
@@ -295,9 +295,9 @@ def analyze_general_documents():
295295
docUrl = "https://raw.githubusercontent.com/Azure-Samples/cognitive-services-REST-api-samples/master/curl/form-recognizer/sample-layout.pdf"
296296

297297
# create your `DocumentIntelligenceClient` instance and `AzureKeyCredential` variable
298-
document_intelligence_client = DocumentIntelligenceClient(endpoint=endpoint, credential=AzureKeyCredential(key))
298+
client = DocumentIntelligenceClient(endpoint=endpoint, credential=AzureKeyCredential(key))
299299

300-
poller = document_intelligence_client.begin_analyze_document(
300+
poller = client.begin_analyze_document(
301301
"prebuilt-document", docUrl)
302302
result = poller.result()
303303

@@ -416,11 +416,11 @@ def analyze_tax_us_w2():
416416
# sample document
417417
formUrl = "https://raw.githubusercontent.com/Azure-Samples/cognitive-services-REST-api-samples/master/curl/form-recognizer/rest-api/w2.png"
418418

419-
document_intelligence_client = DocumentIntelligenceClient(
419+
client = DocumentIntelligenceClient(
420420
endpoint=endpoint, credential=AzureKeyCredential(key)
421421
)
422422

423-
poller = document_intelligence_client.begin_analyze_document(
423+
poller = client.begin_analyze_document(
424424
"prebuilt-tax.us.w2", formUrl
425425
)
426426
w2s = poller.result()
@@ -747,11 +747,11 @@ def analyze_invoice():
747747

748748
invoiceUrl = "https://raw.githubusercontent.com/Azure-Samples/cognitive-services-REST-api-samples/master/curl/form-recognizer/sample-invoice.pdf"
749749

750-
document_intelligence_client = DocumentIntelligenceClient(
750+
client = DocumentIntelligenceClient(
751751
endpoint=endpoint, credential=AzureKeyCredential(key)
752752
)
753753

754-
poller = document_intelligence_client.begin_analyze_document(
754+
poller = client.begin_analyze_document(
755755
"prebuilt-invoice", invoiceUrl)
756756
invoices = poller.result()
757757

@@ -1027,10 +1027,10 @@ def analyze_receipts():
10271027
# sample document
10281028
receiptUrl = "https://raw.githubusercontent.com/Azure-Samples/cognitive-services-REST-api-samples/master/curl/form-recognizer/rest-api/receipt.png"
10291029

1030-
document_intelligence_client = DocumentIntelligenceClient(
1030+
client = DocumentIntelligenceClient(
10311031
endpoint=endpoint, credential=AzureKeyCredential(key)
10321032
)
1033-
poller = document_intelligence_client.begin_analyze_document(
1033+
poller = client.begin_analyze_document(
10341034
"prebuilt-receipt", receiptUrl, locale="en-US"
10351035
)
10361036
receipts = poller.result()
@@ -1125,11 +1125,11 @@ def analyze_identity_documents():
11251125
# sample document
11261126
identityUrl = "https://raw.githubusercontent.com/Azure-Samples/cognitive-services-REST-api-samples/master/curl/form-recognizer/rest-api/identity_documents.png"
11271127

1128-
document_intelligence_client = DocumentIntelligenceClient(
1128+
client = DocumentIntelligenceClient(
11291129
endpoint=endpoint, credential=AzureKeyCredential(key)
11301130
)
11311131

1132-
poller = document_intelligence_client.begin_analyze_document(
1132+
poller =client.begin_analyze_document(
11331133
"prebuilt-idDocument", identityUrl
11341134
)
11351135
id_documents = poller.result()

articles/ai-services/document-intelligence/quickstarts/includes/javascript-sdk.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ Extract text, selection marks, text styles, table structures, and bounding regio
146146
:::moniker range="doc-intel-4.0.0"
147147

148148
```javascript
149-
const { AzureKeyCredential, DocumentIntelligence } = require("@azure-rest/ai-document-intelligence");
149+
const { AzureKeyCredential, DocumentIntelligenceClient } = require("@azure-rest/ai-document-intelligence");
150150

151151
// set `<your-key>` and `<your-endpoint>` variables with the values from the Azure portal.
152152
const key = "<your-key>";
@@ -156,7 +156,7 @@ Extract text, selection marks, text styles, table structures, and bounding regio
156156
const formUrl = "https://raw.githubusercontent.com/Azure-Samples/cognitive-services-REST-api-samples/master/curl/form-recognizer/sample-layout.pdf"
157157

158158
async function main() {
159-
const client = DocumentIntelligence(endpoint, new AzureKeyCredential(key));
159+
const client = DocumentIntelligenceClient(endpoint, new AzureKeyCredential(key));
160160

161161
const poller = await client.beginAnalyzeDocument("prebuilt-layout", formUrl);
162162

@@ -311,7 +311,7 @@ In this example, we analyze an invoice using the **prebuilt-invoice** model.
311311

312312
```javascript
313313

314-
const { AzureKeyCredential, DocumentIntelligence } = require("@azure-rest/ai-document-intelligence");
314+
const { AzureKeyCredential, DocumentIntelligenceClient } = require("@azure-rest/ai-document-intelligence");
315315

316316
// set `<your-key>` and `<your-endpoint>` variables with the values from the Azure portal.
317317
const key = "<your-key>";
@@ -321,9 +321,9 @@ const { AzureKeyCredential, DocumentIntelligence } = require("@azure-rest/ai-doc
321321
invoiceUrl = "https://raw.githubusercontent.com/Azure-Samples/cognitive-services-REST-api-samples/master/curl/form-recognizer/sample-invoice.pdf"
322322

323323
async function main() {
324-
const client = DocumentIntelligence(endpoint, new AzureKeyCredential(key));
324+
const client = DocumentIntelligenceClient(endpoint, new AzureKeyCredential(key));
325325

326-
const poller = await client.beginAnalyzeDocumentFromUrl("prebuilt-invoice", invoiceUrl);
326+
const poller = await client.beginAnalyzeDocument("prebuilt-invoice", invoiceUrl);
327327
if (pages.length <= 0) {
328328
console.log("No pages were extracted from the document.");
329329
} else {

0 commit comments

Comments
 (0)