Skip to content

Commit 7c7294f

Browse files
authored
Merge branch 'main' into synapse-freshness-july-2024
2 parents 48ac1f4 + 6441362 commit 7c7294f

File tree

341 files changed

+3843
-3380
lines changed

Some content is hidden

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

341 files changed

+3843
-3380
lines changed

.openpublishing.redirection.app-service.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1850,6 +1850,16 @@
18501850
"redirect_url": "/azure/app-service/scripts/powershell-scale-manual",
18511851
"redirect_document_id": false
18521852
},
1853+
{
1854+
"source_path_from_root": "/articles/app-service/get-resource-events.md",
1855+
"redirect_url": "/azure/app-service/monitor-app-service",
1856+
"redirect_document_id": false
1857+
},
1858+
{
1859+
"source_path_from_root": "/articles/app-service/overview-monitoring.md",
1860+
"redirect_url": "/azure/app-service/monitor-app-service",
1861+
"redirect_document_id": false
1862+
},
18531863
{
18541864
"source_path_from_root": "/articles/app-service/app-service-security-attributes.md",
18551865
"redirect_url": "/azure/app-service/security-baseline",

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -980,6 +980,11 @@
980980
"redirect_url": "/azure/defender-for-cloud/view-and-remediate-vulnerability-registry-images",
981981
"redirect_document_id": false
982982
},
983+
{
984+
"source_path_from_root": "/articles/defender-for-cloud/management-groups-roles.md",
985+
"redirect_url": "/azure/governance/management-groups/overview",
986+
"redirect_document_id": false
987+
},
983988
{
984989
"source_path_from_root": "/articles/defender-for-cloud/how-to-migrate-to-built-in.md",
985990
"redirect_url": "/azure/defender-for-cloud/how-to-transition-to-built-in",

.openpublishing.redirection.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4498,6 +4498,11 @@
44984498
"redirect_url": "/azure/orbital/overview",
44994499
"redirect_document_id": false
45004500
},
4501+
{
4502+
"source_path_from_root": "/articles/update-manager/pre-post-events-common-scenarios.md",
4503+
"redirect_url": "/azure/update-manager/manage-pre-post-events",
4504+
"redirect_document_id": false
4505+
},
45014506
{
45024507
"source_path_from_root": "/articles/update-manager/whats-upcoming.md",
45034508
"redirect_url": "/azure/update-manager/whats-new",

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ To create a custom extraction model, label a dataset of documents with the value
5454
> Starting with version 4.0 (2024-02-29-preview) API, custom neural models now support **overlapping fields** and **table, row and cell level confidence**.
5555
>
5656
57-
The custom neural (custom document) model uses deep learning models and base model trained on a large collection of documents. This model is then fine-tuned or adapted to your data when you train the model with a labeled dataset. Custom neural models support structured, semi-structured, and unstructured documents to extract fields. Custom neural models currently support English-language documents. When you're choosing between the two model types, start with a neural model to determine if it meets your functional needs. See [neural models](concept-custom-neural.md) to learn more about custom document models.
57+
The custom neural (custom document) model uses deep learning models and base model trained on a large collection of documents. This model is then fine-tuned or adapted to your data when you train the model with a labeled dataset. Custom neural models support structured, semi-structured, and unstructured documents to extract fields. When you're choosing between the two model types, start with a neural model to determine if it meets your functional needs. See [neural models](concept-custom-neural.md) to learn more about custom document models.
5858

5959
### Custom template model
6060

@@ -131,7 +131,7 @@ The `build custom model` operation adds support for the *template* and *neural*
131131

132132
* Template models only accept documents that have the same basic page structure—a uniform visual appearance—or the same relative positioning of elements within the document.
133133

134-
* Neural models support documents that have the same information, but different page structures. Examples of these documents include United States W2 forms, which share the same information, but vary in appearance across companies. Neural models currently only support English text.
134+
* Neural models support documents that have the same information, but different page structures. Examples of these documents include United States W2 forms, which share the same information, but vary in appearance across companies.
135135

136136
This table provides links to the build mode programming language SDK references and code samples on GitHub:
137137

articles/ai-services/language-support.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: laujan
77
manager: nitinme
88
ms.service: azure-ai-services
99
ms.topic: conceptual
10-
ms.date: 07/18/2023
10+
ms.date: 07/08/2024
1111
ms.author: lajanuar
1212
---
1313

@@ -25,7 +25,7 @@ The following table provides links to language support reference articles by sup
2525
|![Document Intelligence icon](~/reusable-content/ce-skilling/azure/media/ai-services/document-intelligence.svg)</br>[Document Intelligence](./document-intelligence/language-support.md) | Turn documents into intelligent data-driven solutions. |
2626
|![Immersive Reader icon](media/service-icons/immersive-reader.svg)</br>[Immersive Reader](./immersive-reader/language-support.md) | Help users read and comprehend text. |
2727
|![Language icon](~/reusable-content/ce-skilling/azure/media/ai-services/language.svg)</br>[Language service](./language-service/concepts/language-support.md) | Build apps with industry-leading natural language understanding capabilities. |
28-
|![Language Understanding icon](media/service-icons/luis.svg)</br>[Language Understanding (LUIS)](./luis/luis-language-support.md) (retired) | Understand natural language in your apps. |
28+
|![Language Understanding icon](media/service-icons/luis.svg)</br>[Language Understanding (`LUIS`)](./luis/luis-language-support.md) (retired) | Understand natural language in your apps. |
2929
|![QnA Maker icon](media/service-icons/luis.svg)</br>[QnA Maker](./qnamaker/overview/language-support.md) (retired) | Distill information into easy-to-navigate questions and answers. |
3030
|![Speech icon](~/reusable-content/ce-skilling/azure/media/ai-services/speech.svg)</br>[Speech Service](./speech-service/language-support.md)| Configure speech-to-text, text-to-speech, translation, and speaker recognition applications. |
3131
|![Translator icon](~/reusable-content/ce-skilling/azure/media/ai-services/translator.svg)</br>[Translator](./translator/language-support.md) | Translate more than 100 in-use, at-risk, and endangered languages and dialects.|
@@ -46,4 +46,4 @@ These Azure AI services are language agnostic and don't have limitations based o
4646
## See also
4747

4848
* [What are Azure AI services?](./what-are-ai-services.md)
49-
* [Create an account](multi-service-resource.md?pivots=azportal)
49+
* [How to create an account](multi-service-resource.md?pivots=azportal)

articles/ai-services/openai/concepts/model-retirements.md

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ titleSuffix: Azure OpenAI
44
description: Learn about the model deprecations and retirements in Azure OpenAI.
55
ms.service: azure-ai-openai
66
ms.topic: conceptual
7-
ms.date: 06/19/2024
7+
ms.date: 07/10/2024
88
ms.custom:
99
manager: nitinme
1010
author: mrbullwinkle
@@ -25,16 +25,43 @@ Azure OpenAI Service models are continually refreshed with newer and more capabl
2525
* Deprecation
2626
* When a model is deprecated, it's no longer available for new customers. It continues to be available for use by customers with existing deployments until the model is retired.
2727

28-
## Preretirement notification
28+
## Notifications
2929

3030
Azure OpenAI notifies customers of active Azure OpenAI Service deployments for models with upcoming retirements. We notify customers of upcoming retirements as follows for each deployment:
3131

32-
* At least 60 days before retirement
33-
* At least 30 days before retirement
34-
* At retirement
32+
1. At model launch, we programmatically designate a "not sooner than" retirement date (typically six months to one year out).
33+
2. At least 60 days notice before model retirement for Generally Available (GA) models.
34+
3. At least 14 days notice before preview model version upgrades.
3535

3636
Retirements are done on a rolling basis, region by region.
3737

38+
## Model availability
39+
40+
1. At least one year of model availability for GA models after the release date of a model in at least one region worldwide
41+
2. For global deployments, all future model versions starting with `gpt-4o` and `gpt-4 0409` will be available with their (`N`) next succeeding model (`N+1`) for comparison together.
42+
1. Customers have 60 days to try out a new GA model in at least one global, or standard region, before any upgrades happen to a newer GA model.
43+
44+
### Considerations for the Azure public cloud
45+
46+
Be aware of the following:
47+
48+
1. All model version combinations will **not** be available in all regions.
49+
2. Model version `N` and `N+1` might not always be available in the same region.
50+
3. GA model version `N` might upgrade to a future model version `N+X` in some regions based on capacity limitations, and without the new model version `N+X` separately being available to test in the same region. The new model version will be available to test in other regions before any upgrades are scheduled.
51+
4. Preview model versions and GA versions of the same model won't always be available to test together in the same region. There will be preview and GA versions available to test in different regions.
52+
5. We reserve the right to limit future customers using a particular region to balance service quality for existing customers.
53+
6. As always at Microsoft, security is of the utmost importance. If a model or model version is found to have compliance or security issues, we reserve the right to invoke the need to do emergency retirements. See the terms of service for more information.
54+
55+
### Special considerations for Azure Government clouds
56+
57+
1. Global standard deployments won't be available in government clouds.
58+
2. Not all models or model versions available in commercial / public cloud will be available in government clouds.
59+
3. In the Azure Government clouds, we intend to support only one version of a given model at a time.
60+
1. For example only one version of `gpt-35-turbo 0125` and `gpt-4o (2024-05-13)`.
61+
4. There will however be a 30 day overlap between new model versions, where more than two will be available.
62+
1. For example if `gpt-35-turbo 0125` or `gpt-4o (2024-05-13)` is updated to a future version, or
63+
2. for model family changes beyond version updates, such as when moving from `gpt-4 1106-preview` to `gpt-4o (2024-05-13)`.
64+
3865
### Who is notified of upcoming retirements
3966

4067
Azure OpenAI notifies those who are members of the following roles for each subscription with a deployment of a model with an upcoming retirement.

articles/ai-services/openai/includes/chatgpt-dotnet.md

Lines changed: 37 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -50,26 +50,22 @@ using static System.Environment;
5050
string endpoint = GetEnvironmentVariable("AZURE_OPENAI_ENDPOINT");
5151
string key = GetEnvironmentVariable("AZURE_OPENAI_API_KEY");
5252

53-
OpenAIClient client = new(new Uri(endpoint), new AzureKeyCredential(key));
54-
55-
var chatCompletionsOptions = new ChatCompletionsOptions()
56-
{
57-
DeploymentName = "gpt-35-turbo", //This must match the custom deployment name you chose for your model
58-
Messages =
59-
{
60-
new ChatRequestSystemMessage("You are a helpful assistant."),
61-
new ChatRequestUserMessage("Does Azure OpenAI support customer managed keys?"),
62-
new ChatRequestAssistantMessage("Yes, customer managed keys are supported by Azure OpenAI."),
63-
new ChatRequestUserMessage("Do other Azure AI services support this too?"),
64-
},
65-
MaxTokens = 100
66-
};
67-
68-
Response<ChatCompletions> response = client.GetChatCompletions(chatCompletionsOptions);
69-
70-
Console.WriteLine(response.Value.Choices[0].Message.Content);
71-
72-
Console.WriteLine();
53+
AzureOpenAIClient azureClient = new(
54+
new Uri(endpoint),
55+
new AzureKeyCredential(key));
56+
57+
// This must match the custom deployment name you chose for your model
58+
ChatClient chatClient = azureClient.GetChatClient("gpt-35-turbo");
59+
60+
ChatCompletion completion = chatClient.CompleteChat(
61+
[
62+
new SystemChatMessage("You are a helpful assistant that talks like a pirate."),
63+
new UserChatMessage("Does Azure OpenAI support customer managed keys?"),
64+
new AssistantChatMessage("Yes, customer managed keys are supported by Azure OpenAI"),
65+
new UserChatMessage("Do other Azure AI services support this too?")
66+
]);
67+
68+
Console.WriteLine($"{completion.Role}: {completion.Content[0].Text}");
7369
```
7470

7571
> [!IMPORTANT]
@@ -82,7 +78,7 @@ dotnet run program.cs
8278
## Output
8379

8480
```output
85-
Yes, many of the Azure AI services support customer managed keys. Some examples include Text Analytics, Speech Services, and Translator. However, it's important to note that not all services support customer managed keys, so it's best to check the documentation for each individual service to see if it is supported.
81+
Assistant : Yes, many other Azure AI services also support customer managed keys, including Azure Cognitive Services, Azure Machine Learning, and Azure Databricks. By using customer managed keys, you can retain complete control over your encryption keys and provide an additional layer of security for your AI assets.
8682
```
8783

8884
This will wait until the model has generated its entire response before printing the results. Alternatively, if you want to asynchronously stream the response and print the results, you can replace the contents of *program.cs* with the code in the next example.
@@ -92,35 +88,37 @@ This will wait until the model has generated its entire response before printing
9288
```csharp
9389
using Azure;
9490
using Azure.AI.OpenAI;
91+
using OpenAI.Chat;
9592
using static System.Environment;
9693

9794
string endpoint = GetEnvironmentVariable("AZURE_OPENAI_ENDPOINT");
9895
string key = GetEnvironmentVariable("AZURE_OPENAI_API_KEY");
9996

100-
OpenAIClient client = new(new Uri(endpoint), new AzureKeyCredential(key));
97+
AzureOpenAIClient azureClient = new(
98+
new Uri(endpoint),
99+
new AzureKeyCredential(key));
101100

102-
var chatCompletionsOptions = new ChatCompletionsOptions()
103-
{
104-
DeploymentName= "gpt-35-turbo", //This must match the custom deployment name you chose for your model
105-
Messages =
106-
{
107-
new ChatRequestSystemMessage("You are a helpful assistant."),
108-
new ChatRequestUserMessage("Does Azure OpenAI support customer managed keys?"),
109-
new ChatRequestAssistantMessage("Yes, customer managed keys are supported by Azure OpenAI."),
110-
new ChatRequestUserMessage("Do other Azure AI services support this too?"),
111-
},
112-
MaxTokens = 100
113-
};
114-
115-
await foreach (StreamingChatCompletionsUpdate chatUpdate in client.GetChatCompletionsStreaming(chatCompletionsOptions))
101+
// This must match the custom deployment name you chose for your model
102+
ChatClient chatClient = azureClient.GetChatClient("gpt-35-turbo");
103+
104+
var chatUpdates = chatClient.CompleteChatStreamingAsync(
105+
[
106+
new SystemChatMessage("You are a helpful assistant that talks like a pirate."),
107+
new UserChatMessage("Does Azure OpenAI support customer managed keys?"),
108+
new AssistantChatMessage("Yes, customer managed keys are supported by Azure OpenAI"),
109+
new UserChatMessage("Do other Azure AI services support this too?")
110+
]);
111+
112+
await foreach(var chatUpdate in chatUpdates)
116113
{
117114
if (chatUpdate.Role.HasValue)
118115
{
119-
Console.Write($"{chatUpdate.Role.Value.ToString().ToUpperInvariant()}: ");
116+
Console.Write($"{chatUpdate.Role} : ");
120117
}
121-
if (!string.IsNullOrEmpty(chatUpdate.ContentUpdate))
118+
119+
foreach(var contentPart in chatUpdate.ContentUpdate)
122120
{
123-
Console.Write(chatUpdate.ContentUpdate);
121+
Console.Write(contentPart.Text);
124122
}
125123
}
126124
```

articles/ai-services/openai/includes/dall-e-dotnet.md

Lines changed: 21 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -70,38 +70,30 @@ dotnet add package Azure.AI.OpenAI --version 1.0.0-beta.6
7070
From the project directory, open the *program.cs* file and replace the contents with the following code:
7171

7272
```csharp
73-
using System;
74-
using System.IO;
75-
using System.Threading.Tasks;
73+
using Azure;
7674
using Azure.AI.OpenAI;
75+
using OpenAI.Images;
76+
using static System.Environment;
7777

78-
namespace Azure.AI.OpenAI.Tests.Samples
79-
{
80-
public partial class GenerateImages
81-
{
82-
// add an async Main method:
83-
public static async Task Main(string[] args)
78+
string endpoint = GetEnvironmentVariable("AZURE_OPENAI_ENDPOINT");
79+
string key = GetEnvironmentVariable("AZURE_OPENAI_API_KEY");
80+
81+
AzureOpenAIClient azureClient = new(
82+
new Uri(endpoint),
83+
new AzureKeyCredential(key));
84+
85+
// This must match the custom deployment name you chose for your model
86+
ImageClient chatClient = azureClient.GetImageClient("dalle-3");
87+
88+
var imageGeneration = await chatClient.GenerateImageAsync(
89+
"a happy monkey sitting in a tree, in watercolor",
90+
new ImageGenerationOptions()
8491
{
85-
string endpoint = GetEnvironmentVariable("AZURE_OPENAI_ENDPOINT");
86-
string key = GetEnvironmentVariable("AZURE_OPENAI_API_KEY");
87-
88-
OpenAIClient client = new(new Uri(endpoint), new AzureKeyCredential(key));
89-
90-
Response<ImageGenerations> imageGenerations = await client.GetImageGenerationsAsync(
91-
new ImageGenerationOptions()
92-
{
93-
Prompt = "a happy monkey eating a banana, in watercolor",
94-
Size = ImageSize.Size256x256,
95-
});
96-
97-
// Image Generations responses provide URLs you can use to retrieve requested images
98-
Uri imageUri = imageGenerations.Value.Data[0].Url;
99-
100-
// Print the image URI to console:
101-
Console.WriteLine(imageUri);
92+
Size = GeneratedImageSize.W1024xH1024
10293
}
103-
}
104-
}
94+
);
95+
96+
Console.WriteLine(imageGeneration.Value.ImageUri);
10597
```
10698

10799
Build and run the application from your application directory with these commands:
@@ -116,7 +108,7 @@ dotnet run
116108
The URL of the generated image is printed to the console.
117109

118110
```console
119-
https://dalleproduse.blob.core.windows.net/private/images/552c5522-af4a-4877-a19c-400fac04a422/generated_00.png?se=2023-08-17T16%3A54%3A40Z&sig=XGCIx9r0WvWTJ0LL%2FJGymo2WYp4FDbSQNNrGRUnnUzI%3D&ske=2023-08-19T01%3A10%3A14Z&skoid=09ba021e-c417-441c-b203-c81e5dcd7b7f&sks=b&skt=2023-08-12T01%3A10%3A14Z&sktid=33e01921-4d64-4f8c-a055-5bdaffd5e33d&skv=2020-10-02&sp=r&spr=https&sr=b&sv=2020-10-02
111+
https://dalleproduse.blob.core.windows.net/private/images/b7ac5e55-f1f8-497a-8d0e-8f51446bf538/generated_00.png?se=2024-07-12T13%3A47%3A56Z&sig=Zri37iYVTVtc52qzTFBOqPgSHvXwEhcO86Smv2ojB%2FE%3D&ske=2024-07-17T12%3A15%3A44Z&skoid=09ba021e-c417-441c-b203-c81e5dcd7b7f&sks=b&skt=2024-07-10T12%3A15%3A44Z&sktid=33e01921-4d64-4f8c-a055-5bdaffd5e33d&skv=2020-10-02&sp=r&spr=https&sr=b&sv=2020-10-02
120112
```
121113

122114
> [!NOTE]

0 commit comments

Comments
 (0)