Skip to content

Commit 2ae45a7

Browse files
committed
Merge branch 'main' of https://github.com/microsoftdocs/azure-docs-pr into payment-hsm
2 parents 51aca88 + 05f584b commit 2ae45a7

File tree

498 files changed

+4046
-1382
lines changed

Some content is hidden

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

498 files changed

+4046
-1382
lines changed

.openpublishing.redirection.azure-monitor.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2287,17 +2287,17 @@
22872287
},
22882288
{
22892289
"source_path_from_root": "/articles/azure-monitor/insights/solutions-inventory.md",
2290-
"redirect_url": "/azure/azure-monitor/monitor-reference",
2290+
"redirect_url": "/azure/azure-monitor/overview",
22912291
"redirect_document_id": false
22922292
},
22932293
{
22942294
"source_path_from_root": "/articles/monitoring/monitoring-solutions-inventory.md",
2295-
"redirect_url": "/azure/azure-monitor/monitor-reference",
2295+
"redirect_url": "/azure/azure-monitor/overview",
22962296
"redirect_document_id": false
22972297
},
22982298
{
22992299
"source_path_from_root": "/articles/azure-monitor/platform/data-locations.md",
2300-
"redirect_url": "/azure/azure-monitor/monitor-reference/",
2300+
"redirect_url": "/azure/azure-monitor/overview/",
23012301
"redirect_document_id": false
23022302
},
23032303
{
@@ -6598,6 +6598,11 @@
65986598
"source_path_from_root": "/articles/azure-monitor/app/java-standalone-arguments.md",
65996599
"redirect_url": "/azure/azure-monitor/app/java-get-started-supplemental",
66006600
"redirect_document_id": true
6601+
},
6602+
{
6603+
"source_path_from_root": "/articles/azure-monitor/monitor-reference.md",
6604+
"redirect_url": "/azure/azure-monitor/overview",
6605+
"redirect_document_id": false
66016606
}
66026607
]
66036608
}

.openpublishing.redirection.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@
6060
"redirect_url": "/previous-versions/azure/storage/queues/storage-ruby-how-to-use-queue-storage",
6161
"redirect_document_id": false
6262
},
63+
{
64+
"source_path": "articles/storage-actions/index.yml",
65+
"redirect_url": "/azure/storage-actions/storage-tasks/",
66+
"redirect_document_id": false
67+
},
6368
{
6469
"source_path": "articles/storage/queues/storage-php-how-to-use-queues.md",
6570
"redirect_url": "/previous-versions/azure/storage/queues/storage-php-how-to-use-queues",
@@ -11799,10 +11804,15 @@
1179911804
"redirect_document_id": false
1180011805

1180111806
},
11807+
{
11808+
"source_path": "articles/external-attack-surface-management/labeling-inventory-assets.md",
11809+
"redirect_URL": "/azure/external-attack-surface-management/modifying-inventory-assets",
11810+
"redirect_document_id": true
11811+
},
1180211812
{
1180311813
"source_path_from_root": "/articles/azure-health-insights/response-info.md",
1180411814
"redirect_url": "/azure/azure-health-insights/overview",
1180511815
"redirect_document_id": false
1180611816
}
1180711817
]
11808-
}
11818+
}

articles/ai-services/.openpublishing.redirection.cognitive-services.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5125,7 +5125,7 @@
51255125
},
51265126
{
51275127
"source_path_from_root": "/articles/cognitive-services/text-analytics/migration-guide.md",
5128-
"redirect_url": "/azure/ai-services/language-service/concepts/migrate-from-text-analytics-v2",
5128+
"redirect_url": "/azure/ai-services/language-service/concepts/migrate",
51295129
"redirect_document_id": false
51305130
},
51315131
{

articles/ai-services/document-intelligence/faq.yml

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ sections:
216216
217217
| Supported Language Azure SDK reference|Supported API versions|
218218
| ----- | -----|
219-
| &bull; C#/.NET: [4.0.0](https://azuresdkdocs.blob.core.windows.net/$web/dotnet/Azure.AI.FormRecognizer/4.0.0/index.html)<br><br>&bull; Java: [4.0.0](https://azuresdkdocs.blob.core.windows.net/$web/java/azure-ai-formrecognizer/4.0.0/index.html)<br><br>&bull; JavaScript: [4.0.0](https://azuresdkdocs.blob.core.windows.net/$web/javascript/azure-ai-form-recognizer/4.0.0/index.html)<br><br>&bull; Python [3.2.0](https://azuresdkdocs.blob.core.windows.net/$web/python/azure-ai-formrecognizer/3.2.0/index.html) |[**2023-10-31-preview**](https://learn.microsoft.com/rest/api/aiservices/operation-groups?view=rest-aiservices-2023-10-31-preview&preserve-view=true&tabs=HTTP&branch=main)<br>[**v3.0**](/rest/api/aiservices/document-models/analyze-document?view=rest-aiservices-2023-07-31&preserve-view=true&tabs=HTTP)</br> [**v2.1**](https://westus.dev.cognitive.microsoft.com/docs/services/form-recognizer-api-v2-1/operations/AnalyzeBusinessCardAsync)</br>[**v2.0**](https://westus.dev.cognitive.microsoft.com/docs/services/form-recognizer-api-v2/operations/AnalyzeLayoutAsync) |
219+
| &bull; C#/.NET: [4.0.0](https://azuresdkdocs.blob.core.windows.net/$web/dotnet/Azure.AI.FormRecognizer/4.0.0/index.html)<br><br>&bull; Java: [4.0.0](https://azuresdkdocs.blob.core.windows.net/$web/java/azure-ai-formrecognizer/4.0.0/index.html)<br><br>&bull; JavaScript: [4.0.0](https://azuresdkdocs.blob.core.windows.net/$web/javascript/azure-ai-form-recognizer/4.0.0/index.html)<br><br>&bull; Python [3.2.0](https://azuresdkdocs.blob.core.windows.net/$web/python/azure-ai-formrecognizer/3.2.0/index.html) |[**2023-10-31-preview**](/rest/api/aiservices/operation-groups?view=rest-aiservices-2023-10-31-preview&preserve-view=true&tabs=HTTP&branch=main)<br>[**v3.0**](/rest/api/aiservices/document-models/analyze-document?view=rest-aiservices-2023-07-31&preserve-view=true&tabs=HTTP)</br> [**v2.1**](https://westus.dev.cognitive.microsoft.com/docs/services/form-recognizer-api-v2-1/operations/AnalyzeBusinessCardAsync)</br>[**v2.0**](https://westus.dev.cognitive.microsoft.com/docs/services/form-recognizer-api-v2/operations/AnalyzeLayoutAsync) |
220220
221221
For more information, *see* [Supported clients](sdk-overview-v4-0.md#supported-clients)
222222
@@ -460,11 +460,32 @@ sections:
460460
461461
- You need an active [Azure account](https://azure.microsoft.com/free/cognitive-services/) and subscription with at least a **Reader** role to access Document Intelligence Studio.
462462
463-
- For **document analysis and prebuilt models**, you need full access—**Cognitive Services User** role—to at least one [Document Intelligence](https://portal.azure.com/#create/Microsoft.CognitiveServicesFormRecognizer) or [multi-service](https://portal.azure.com/#create/Microsoft.CognitiveServicesAllInOne) resource. Once you access the model analyze page, you can change the endpoint and key to access other resources, if needed.
463+
- For document analysis and prebuilt models, here are the role requirements for user scenarios.
464464
465-
- For **custom models**, you can either use a **Cognitive Services User** role, or use the endpoint and key of a [Document Intelligence](https://portal.azure.com/#create/Microsoft.CognitiveServicesFormRecognizer) or [multi-service](https://portal.azure.com/#create/Microsoft.CognitiveServicesAllInOne) resource to create a project. You also need to have **Storage Blob Data Contributor** role to access to at least one blob storage account.
465+
- Basic
466466
467-
- For more information, *see* [Microsoft Entra built-in roles](../../role-based-access-control/built-in-roles.md).
467+
- **Cognitive Services User**: you need this role to [Document Intelligence](https://portal.azure.com/#create/Microsoft.CognitiveServicesFormRecognizer) or [Cognitive Services multi-service](https://portal.azure.com/#create/Microsoft.CognitiveServicesAllInOne) resource to enter the analyze page.
468+
469+
- Advanced
470+
471+
- **Contributor**: you need this role to create resource group or Document Intelligence resource.
472+
473+
- For custom model projects, here are the role requirements for user scenarios.
474+
475+
- Basic
476+
477+
- **Cognitive Services User**: you need this role to [Document Intelligence](https://portal.azure.com/#create/Microsoft.CognitiveServicesFormRecognizer) or [Cognitive Services multi-service](https://portal.azure.com/#create/Microsoft.CognitiveServicesAllInOne) resource to train custom model or analyze with trained models.
478+
479+
- **Storage Blob Data Contributor**: you need this role to storage account to create project and label data.
480+
481+
- Advanced
482+
483+
- **Storage Account Contributor**: you need this role to the storage account to setup CORS settings (this is one time effort if the same storage account is reused).
484+
485+
- **Contributor**: you need this role to create resource group and resources.
486+
487+
488+
- For more information, *see* [Microsoft Entra built-in roles](../../role-based-access-control/built-in-roles.md) and **Azure role assignments** sections in [Document Intelligence Studio](quickstarts/try-document-intelligence-studio.md) page.
468489
469490
- question: |
470491
I have multiple pages in a document. Why are there only two pages analyzed in Document Intelligence Studio?

articles/ai-services/openai/concepts/content-filter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ Approval for modified content filtering is required for access to the asynchrono
650650
651651
### Comparison of content filtering modes
652652
653-
| | Streaming - Default | Streaming - Asynchronous Modified Filter |
653+
| Compare | Streaming - Default | Streaming - Asynchronous Modified Filter |
654654
|---|---|---|
655655
|Status |GA |Public Preview |
656656
| Eligibility |All customers |Customers approved for modified content filtering |
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
---
2+
services: ai-services
3+
author: soferreira
4+
ms.author: soferreira
5+
ms.service: openai
6+
ms.topic: include
7+
ms.date: 1/25/2024
8+
---
9+
10+
## Python
11+
12+
### Prerequisites
13+
14+
- <a href="https://www.python.org/" target="_blank">Python 3.7.1 or later version</a>
15+
- The following Python libraries: os
16+
17+
### Set up
18+
19+
Install the OpenAI Python client library with:
20+
21+
# [OpenAI Python 0.28.1](#tab/python)
22+
23+
```console
24+
pip install openai==0.28.1
25+
```
26+
27+
# [OpenAI Python 1.x](#tab/python-new)
28+
29+
```console
30+
pip install openai
31+
```
32+
33+
---
34+
35+
1. Create a new Python file called quickstart.py. Then open it up in your preferred editor or IDE.
36+
37+
1. Replace the contents of quickstart.py with the following code. Modify the code to add your deployment name:
38+
39+
```python
40+
import openai
41+
import time
42+
import os
43+
44+
openai.api_key = os.getenv("AZURE_OPENAI_KEY")
45+
openai.api_base = os.getenv("AZURE_OPENAI_ENDPOINT") # your endpoint should look like the following https://YOUR_RESOURCE_NAME.openai.azure.com/
46+
openai.api_type = "azure"
47+
openai.api_version = "2023-09-01-preview"
48+
49+
model_name = "whisper"
50+
deployment_id = "YOUR-DEPLOYMENT-NAME-HERE" #This will correspond to the custom name you chose for your deployment when you deployed a model."
51+
audio_language="en"
52+
53+
audio_test_file = "./wikipediaOcelot.wav"
54+
55+
result = openai.Audio.transcribe(
56+
file=open(audio_test_file, "rb"),
57+
model=model_name,
58+
deployment_id=deployment_id
59+
)
60+
61+
print(result)
62+
```
63+
64+
Run the application with the python command on your quickstart file:
65+
66+
67+
You can get sample audio files from the [Azure AI Speech SDK repository at GitHub](https://github.com/Azure-Samples/cognitive-services-speech-sdk/tree/master/sampledata/audiofiles).
68+
69+
> [!IMPORTANT]
70+
> For production, use a secure way of storing and accessing your credentials like [Azure Key Vault](../../../key-vault/general/overview.md). For more information about credential security, see the Azure AI services [security](../../security-features.md) article.
71+
72+
## Output
73+
74+
```python
75+
{"text":"The ocelot, Lepardus paradalis, is a small wild cat native to the southwestern United States, Mexico, and Central and South America. This medium-sized cat is characterized by solid black spots and streaks on its coat, round ears, and white neck and undersides. It weighs between 8 and 15.5 kilograms, 18 and 34 pounds, and reaches 40 to 50 centimeters 16 to 20 inches at the shoulders. It was first described by Carl Linnaeus in 1758. Two subspecies are recognized, L. p. paradalis and L. p. mitis. Typically active during twilight and at night, the ocelot tends to be solitary and territorial. It is efficient at climbing, leaping, and swimming. It preys on small terrestrial mammals such as armadillo, opossum, and lagomorphs."}
76+
```

0 commit comments

Comments
 (0)