Skip to content

Commit c92c003

Browse files
authored
Merge branch 'MicrosoftDocs:main' into main
2 parents bd0ae33 + 530f694 commit c92c003

File tree

1,085 files changed

+13589
-9883
lines changed

Some content is hidden

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

1,085 files changed

+13589
-9883
lines changed

.openpublishing.publish.config.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,12 @@
356356
"branch": "main",
357357
"branch_mapping": {}
358358
},
359+
{
360+
"path_to_root": "azure-functions-python-worker",
361+
"url": "https://github.com/Azure/azure-functions-python-worker",
362+
"branch": "dev",
363+
"branch_mapping": {}
364+
},
359365
{
360366
"path_to_root": "functions-openapi-turbine-repair",
361367
"url": "https://github.com/Azure-Samples/functions-openapi-turbine-repair",
@@ -866,6 +872,12 @@
866872
"branch": "master",
867873
"branch_mapping": {}
868874
},
875+
{
876+
"path_to_root": "blob-devguide-go",
877+
"url": "https://github.com/Azure-Samples/blob-storage-devguide-go",
878+
"branch": "main",
879+
"branch_mapping": {}
880+
},
869881
{
870882
"path_to_root": "azure-sdk-for-net",
871883
"url": "https://github.com/Azure/azure-sdk-for-net/",

.openpublishing.redirection.azure-kubernetes-service.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -351,12 +351,6 @@
351351
"redirect_url": "/cli/azure/aks#az_aks_create",
352352
"redirect_document_id": false
353353
},
354-
{
355-
"source_path_from_root": "/articles/aks/delete-cluster.md",
356-
"redirect_url": "/cli/azure/aks#az_aks_delete",
357-
"redirect_document_id": false
358-
},
359-
360354
{
361355
"source_path": "articles/aks/view-master-logs.md",
362356
"redirect_url": "/azure/aks/view-control-plane-logs",

.openpublishing.redirection.azure-monitor.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
"redirect_url": "/azure/azure-monitor/snapshot-debugger/snapshot-debugger#release-notes-for-microsoftapplicationinsightssnapshotcollector",
66
"redirect_document_id": false
77
},
8+
{
9+
"source_path_from_root": "/articles/azure-monitor/agents/om-agents.md",
10+
"redirect_url": "/azure/azure-monitor/vm/scom-managed-instance-overview",
11+
"redirect_document_id": false
12+
},
813
{
914
"source_path_from_root": "/articles/azure-monitor/best-practices.md",
1015
"redirect_url": "/azure/azure-monitor/getting-started",

.openpublishing.redirection.defender-for-cloud.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"redirections": [
3+
{
4+
"source_path_from_root": "/articles/defender-for-cloud/secret-scanning.md",
5+
"redirect_url": "/azure/defender-for-cloud/secrets-scanning-servers",
6+
"redirect_document_id": false
7+
},
38
{
49
"source_path_from_root": "/articles/defender-for-cloud/prevent-misconfigurations.md",
510
"redirect_url": "/azure/defender-for-cloud/manage-mcsb",

.openpublishing.redirection.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3987,7 +3987,7 @@
39873987
},
39883988
{
39893989
"source_path_from_root":"/articles/trusted-signing/concept.md",
3990-
"redirect_url":"/azure/trusted-signing/concept-trustedsigning-resources-roles",
3990+
"redirect_url":"/azure/trusted-signing/concept-trusted-signing-resources-roles",
39913991
"redirect_document_id":false
39923992
},
39933993
{

.openpublishing.redirection.sentinel.json

Lines changed: 433 additions & 13 deletions
Large diffs are not rendered by default.

articles/ai-services/content-safety/concepts/jailbreak-detection.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Currently, the Prompt Shields API supports the English language. While our API d
7171

7272
### Text length limitations
7373

74-
The maximum character limit for Prompt Shields is 10,000 characters per API call, between both the user prompts and documents combines. If your input (either user prompts or documents) exceeds these character limitations, you'll encounter an error.
74+
The maximum character limit for Prompt Shields allows for a user prompt of up to 10,000 characters, while the document array is restricted to a maximum of 5 documents with a combined total not exceeding 10,000 characters.
7575

7676
### TPS limitations
7777

articles/ai-services/content-safety/how-to/use-blocklist.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -258,14 +258,18 @@ curl --location --request POST '<endpoint>/contentsafety/text/blocklists/<your_l
258258
> You can add multiple blocklistItems in one API call. Make the request body a JSON array of data groups:
259259
>
260260
> ```json
261-
> [{
262-
> "description": "string",
263-
> "text": "bleed"
264-
> },
265261
> {
266-
> "description": "string",
267-
> "text": "blood"
268-
> }]
262+
> "blocklistItems": [
263+
> {
264+
> "description": "string",
265+
> "text": "bleed"
266+
> },
267+
> {
268+
> "description": "string",
269+
> "text": "blood"
270+
> }
271+
> ]
272+
>}
269273
> ```
270274
271275

articles/ai-services/language-service/entity-linking/includes/quickstarts/csharp-sdk.md

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,30 @@ ms.date: 12/19/2023
88
ms.author: jboback
99
---
1010

11-
[Reference documentation](/dotnet/api/azure.ai.textanalytics?preserve-view=true&view=azure-dotnet) | [Additional samples](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/textanalytics/Azure.AI.TextAnalytics/samples) | [Package (NuGet)](https://www.nuget.org/packages/Azure.AI.TextAnalytics/5.2.0) | [Library source code](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/textanalytics/Azure.AI.TextAnalytics)
11+
[Reference documentation](/dotnet/api/azure.ai.textanalytics?preserve-view=true&view=azure-dotnet) | [More samples](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/textanalytics/Azure.AI.TextAnalytics/samples) | [Package (NuGet)](https://www.nuget.org/packages/Azure.AI.TextAnalytics/5.2.0) | [Library source code](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/textanalytics/Azure.AI.TextAnalytics)
1212

13-
Use this quickstart to create an entity linking application with the client library for .NET. In the following example, you will create a C# application that can identify and disambiguate entities found in text.
13+
Use this quickstart to create an entity linking application with the client library for .NET. In the following example, you create a C# application that can identify and disambiguate entities found in text.
1414

1515
[!INCLUDE [Use Language Studio](../../../includes/use-language-studio.md)]
1616

1717
## Prerequisites
1818

1919
* Azure subscription - [Create one for free](https://azure.microsoft.com/free/cognitive-services)
2020
* The [Visual Studio IDE](https://visualstudio.microsoft.com/vs/)
21-
* Once you have your Azure subscription, <a href="https://portal.azure.com/#create/Microsoft.CognitiveServicesTextAnalytics" title="Create a Language resource" target="_blank">create a Language resource </a> in the Azure portal to get your key and endpoint. After it deploys, select **Go to resource**.
22-
* You will need the key and endpoint from the resource you create to connect your application to the API. You'll paste your key and endpoint into the code below later in the quickstart.
23-
* You can use the free pricing tier (`Free F0`) to try the service, and upgrade later to a paid tier for production.
24-
* To use the Analyze feature, you will need a Language resource with the standard (S) pricing tier.
25-
2621

2722

2823
## Setting up
2924

25+
[!INCLUDE [Create an Azure resource](../../../includes/create-resource.md)]
26+
27+
28+
29+
[!INCLUDE [Get your key and endpoint](../../../includes/get-key-endpoint.md)]
30+
31+
32+
33+
[!INCLUDE [Create environment variables](../../../includes/environment-variables.md)]
34+
3035
### Create a new .NET Core application
3136

3237
Using the Visual Studio IDE, create a new .NET Core console app. This will create a "Hello World" project with a single C# source file: *program.cs*.
@@ -37,9 +42,7 @@ Install the client library by right-clicking on the solution in the **Solution E
3742

3843
## Code example
3944

40-
Copy the following code into your *program.cs* file. Remember to replace the `key` variable with the key for your resource, and replace the `endpoint` variable with the endpoint for your resource. Then run the code.
41-
42-
[!INCLUDE [find the key and endpoint for a resource](../../../includes/find-azure-resource-info.md)]
45+
Copy the following code into your *program.cs* file and run the code.
4346

4447
```csharp
4548
using Azure;
@@ -51,8 +54,12 @@ namespace EntityLinkingExample
5154
{
5255
class Program
5356
{
54-
private static readonly Uri endpoint = new Uri("replace-with-your-endpoint-here");
55-
private static readonly AzureKeyCredential credentials = new AzureKeyCredential("replace-with-your-key-here");
57+
// This example requires environment variables named "LANGUAGE_KEY" and "LANGUAGE_ENDPOINT"
58+
static string languageKey = Environment.GetEnvironmentVariable("LANGUAGE_KEY");
59+
static string languageEndpoint = Environment.GetEnvironmentVariable("LANGUAGE_ENDPOINT");
60+
61+
private static readonly AzureKeyCredential credentials = new AzureKeyCredential(languageKey);
62+
private static readonly Uri endpoint = new Uri(languageEndpoint);
5663

5764
// Example method for recognizing entities and providing a link to an online data source.
5865
static void EntityLinkingExample(TextAnalyticsClient client)

articles/ai-services/language-service/entity-linking/includes/quickstarts/java-sdk.md

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,29 @@ ms.custom: devx-track-java
1010
ms.author: jboback
1111
---
1212

13-
[Reference documentation](/java/api/overview/azure/ai-textanalytics-readme?preserve-view=true&view=azure-java-stable) | [Additional samples](https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/textanalytics/azure-ai-textanalytics/src/samples) | [Package (Maven)](https://mvnrepository.com/artifact/com.azure/azure-ai-textanalytics/5.2.0) | [Library source code](https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/textanalytics/azure-ai-textanalytics)
14-
15-
Use this quickstart to create an entity linking application with the client library for Java. In the following example, you will create a Java application that can identify and disambiguate entities found in text.
16-
17-
[!INCLUDE [Use Language Studio](../../../includes/use-language-studio.md)]
13+
[Reference documentation](/java/api/overview/azure/ai-textanalytics-readme?preserve-view=true&view=azure-java-stable) | [More samples](https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/textanalytics/azure-ai-textanalytics/src/samples) | [Package (Maven)](https://mvnrepository.com/artifact/com.azure/azure-ai-textanalytics/5.2.0) | [Library source code](https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/textanalytics/azure-ai-textanalytics)
1814

15+
Use this quickstart to create an entity linking application with the client library for Java. In the following example, you create a Java application that can identify and disambiguate entities found in text.
1916

2017
## Prerequisites
2118

2219
* Azure subscription - [Create one for free](https://azure.microsoft.com/free/cognitive-services)
2320
* [Java Development Kit](https://www.oracle.com/technetwork/java/javase/downloads/index.html) (JDK) with version 8 or above
24-
* Once you have your Azure subscription, <a href="https://portal.azure.com/#create/Microsoft.CognitiveServicesTextAnalytics" title="Create a Language resource" target="_blank">create a Language resource </a> in the Azure portal to get your key and endpoint. After it deploys, select **Go to resource**.
25-
* You will need the key and endpoint from the resource you create to connect your application to the API. You'll paste your key and endpoint into the code below later in the quickstart.
26-
* You can use the free pricing tier (`Free F0`) to try the service, and upgrade later to a paid tier for production.
27-
* To use the Analyze feature, you will need a Language resource with the standard (S) pricing tier.
28-
2921

3022

3123
## Setting up
3224

25+
[!INCLUDE [Create an Azure resource](../../../includes/create-resource.md)]
26+
27+
28+
29+
[!INCLUDE [Get your key and endpoint](../../../includes/get-key-endpoint.md)]
30+
31+
32+
33+
[!INCLUDE [Create environment variables](../../../includes/environment-variables.md)]
34+
35+
3336
### Add the client library
3437

3538
Create a Maven project in your preferred IDE or development environment. Then add the following dependency to your project's *pom.xml* file. You can find the implementation syntax [for other build tools](https://mvnrepository.com/artifact/com.azure/azure-ai-textanalytics/5.2.0) online.
@@ -48,9 +51,7 @@ Create a Maven project in your preferred IDE or development environment. Then ad
4851

4952
## Code example
5053

51-
Create a Java file named `Example.java`. Open the file and copy the below code. Remember to replace the `key` variable with the key for your resource, and replace the `endpoint` variable with the endpoint for your resource. Then run the code.
52-
53-
[!INCLUDE [find the key and endpoint for a resource](../../../includes/find-azure-resource-info.md)]
54+
Create a Java file named `Example.java`. Open the file and copy the below code. Then run the code.
5455

5556
```java
5657
import com.azure.core.credential.AzureKeyCredential;
@@ -60,11 +61,12 @@ import com.azure.ai.textanalytics.TextAnalyticsClient;
6061

6162
public class Example {
6263

63-
private static String KEY = "replace-with-your-key-here";
64-
private static String ENDPOINT = "replace-with-your-endpoint-here";
64+
// This example requires environment variables named "LANGUAGE_KEY" and "LANGUAGE_ENDPOINT"
65+
private static String languageKey = System.getenv("LANGUAGE_KEY");
66+
private static String languageEndpoint = System.getenv("LANGUAGE_ENDPOINT");
6567

6668
public static void main(String[] args) {
67-
TextAnalyticsClient client = authenticateClient(KEY, ENDPOINT);
69+
TextAnalyticsClient client = authenticateClient(languageKey, languageEndpoint);
6870
recognizeLinkedEntitiesExample(client);
6971
}
7072
// Method to authenticate the client object with your key and endpoint
@@ -144,4 +146,4 @@ Text: Altair 8800, Score: 0.88, Offset: 116, Length: 11
144146
* [Entity linking language support](../../language-support.md)
145147
* [How to call the entity linking API](../../how-to/call-api.md)
146148
* [Reference documentation](/java/api/overview/azure/ai-textanalytics-readme?preserve-view=true&view=azure-java-stable)
147-
* [Additional samples](https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/textanalytics/azure-ai-textanalytics/src/samples)
149+
*[More samples](https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/textanalytics/azure-ai-textanalytics/src/samples)

0 commit comments

Comments
 (0)