Skip to content

Commit 85061d8

Browse files
Merge pull request #7440 from MicrosoftDocs/main
Auto Publish – main to live - 2025-10-02 05:03 UTC
2 parents 2b0d8aa + 4ec599c commit 85061d8

File tree

8 files changed

+255
-124
lines changed

8 files changed

+255
-124
lines changed

articles/ai-foundry/openai/api-version-lifecycle.md

Lines changed: 137 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ manager: nitinme
66
ms.service: azure-ai-foundry
77
ms.subservice: azure-ai-foundry-openai
88
ms.topic: conceptual
9-
ms.date: 09/05/2025
9+
ms.date: 10/01/2025
1010
author: mrbullwinkle
1111
ms.author: mbullwin
1212
recommendations: false
@@ -43,29 +43,13 @@ For the initial v1 Generally Available (GA) API launch we're only supporting a s
4343

4444
## Code changes
4545

46-
# [API Key](#tab/key)
46+
# [Python](#tab/python)
4747

48-
### Last generation API
48+
### v1 API
4949

50-
```python
51-
import os
52-
from openai import AzureOpenAI
53-
54-
client = AzureOpenAI(
55-
api_key=os.getenv("AZURE_OPENAI_API_KEY"),
56-
api_version="2025-04-01-preview",
57-
azure_endpoint="https://YOUR-RESOURCE-NAME.openai.azure.com")
58-
)
59-
60-
response = client.responses.create(
61-
model="gpt-4.1-nano", # Replace with your model deployment name
62-
input="This is a test."
63-
)
50+
[Python v1 examples](./supported-languages.md)
6451

65-
print(response.model_dump_json(indent=2))
66-
```
67-
68-
### Next generation API
52+
**API Key**:
6953

7054
```python
7155
import os
@@ -88,33 +72,13 @@ print(response.model_dump_json(indent=2))
8872
- `base_url` passes the Azure OpenAI endpoint and `/openai/v1` is appended to the endpoint address.
8973
- `api-version` is no longer a required parameter with the v1 GA API.
9074

91-
# [Microsoft Entra ID](#tab/entra)
92-
93-
### Last generation API
75+
**API Key** with environment variables set for `OPENAI_BASE_URL` and `OPENAI_API_KEY`:
9476

9577
```python
96-
from openai import AzureOpenAI
97-
from azure.identity import DefaultAzureCredential, get_bearer_token_provider
98-
99-
token_provider = get_bearer_token_provider(
100-
DefaultAzureCredential(), "https://cognitiveservices.azure.com/.default"
101-
)
102-
103-
client = AzureOpenAI(
104-
azure_endpoint = "https://YOUR-RESOURCE-NAME.openai.azure.com/",
105-
azure_ad_token_provider=token_provider,
106-
api_version="2025-04-01-preview"
107-
)
108-
109-
response = client.responses.create(
110-
model="gpt-4.1-nano", # Replace with your model deployment name
111-
input="This is a test."
112-
)
113-
114-
print(response.model_dump_json(indent=2))
78+
client = OpenAI()
11579
```
11680

117-
### Next generation API
81+
**Microsoft Entra ID**:
11882

11983
> [!IMPORTANT]
12084
> Handling automatic token refresh was previously handled through use of the `AzureOpenAI()` client. The v1 API removes this dependency, by adding automatic token refresh support to the `OpenAI()` client.
@@ -143,40 +107,148 @@ print(response.model_dump_json(indent=2))
143107
- `base_url` passes the Azure OpenAI endpoint and `/openai/v1` is appended to the endpoint address.
144108
- `api_key` parameter is set to `token_provider`, enabling automatic retrieval and refresh of an authentication token instead of using a static API key.
145109

146-
# [REST](#tab/rest)
110+
# [C#](#tab/dotnet)
111+
112+
### v1 API
147113

148-
### Last generation API
114+
[C# v1 examples](./supported-languages.md)
149115

150116
**API Key**:
151117

152-
```bash
153-
curl -X POST https://YOUR-RESOURCE-NAME.openai.azure.com/openai/responses?api-version=2025-04-01-preview \
154-
-H "Content-Type: application/json" \
155-
-H "api-key: $AZURE_OPENAI_API_KEY" \
156-
-d '{
157-
"model": "gpt-4.1-nano",
158-
"input": "This is a test"
159-
}'
118+
```csharp
119+
OpenAIClient client = new(
120+
new ApiKeyCredential("{your-api-key}"),
121+
new OpenAIClientOptions()
122+
{
123+
Endpoint = new("https://YOUR-RESOURCE-NAME.openai.azure.com/openai/v1/"),
124+
})
160125
```
161126

162127
**Microsoft Entra ID**:
163128

164-
```bash
165-
curl -X POST https://YOUR-RESOURCE-NAME.openai.azure.com/openai/responses?api-version=2025-04-01-preview \
166-
-H "Content-Type: application/json" \
167-
-H "Authorization: Bearer $AZURE_OPENAI_AUTH_TOKEN" \
168-
-d '{
169-
"model": "gpt-4.1-nano",
170-
"input": "This is a test"
171-
}'
129+
```csharp
130+
#pragma warning disable OPENAI001
131+
132+
BearerTokenPolicy tokenPolicy = new(
133+
new DefaultAzureCredential(),
134+
"https://cognitiveservices.azure.com/.default");
135+
OpenAIClient client = new(
136+
authenticationPolicy: tokenPolicy,
137+
options: new OpenAIClientOptions()
138+
{
139+
Endpoint = new("https://YOUR-RESOURCE-NAME.openai.azure.com/openai/v1/"),
140+
})
172141
```
173142

174-
### Next generation API
143+
# [JavaScript](#tab/javascript)
144+
145+
### v1 API
146+
147+
[JavaScript v1 examples](./supported-languages.md)
148+
149+
**API Key**:
150+
151+
```javascript
152+
const client = new OpenAI({
153+
baseURL: "https://YOUR-RESOURCE-NAME.openai.azure.com/openai/v1/",
154+
apiKey: "{your-api-key}"
155+
});
156+
```
157+
158+
**API Key** with environment variables set for `OPENAI_BASE_URL` and `OPENAI_API_KEY`:
159+
160+
```javascript
161+
const client = new OpenAI();
162+
```
163+
164+
**Microsoft Entra ID**:
165+
166+
```javascript
167+
const tokenProvider = getBearerTokenProvider(
168+
new DefaultAzureCredential(),
169+
'https://cognitiveservices.azure.com/.default');
170+
const client = new OpenAI({
171+
baseURL: "https://YOUR-RESOURCE-NAME.openai.azure.com/openai/v1/",
172+
apiKey: tokenProvider
173+
});
174+
```
175+
176+
# [Go](#tab/go)
177+
178+
### v1 API
179+
180+
[Go v1 examples](./supported-languages.md)
181+
182+
**API Key**:
183+
184+
```go
185+
client := openai.NewClient(
186+
option.WithBaseURL("https://YOUR-RESOURCE-NAME.openai.azure.com/openai/v1/"),
187+
option.WithAPIKey("{your-api-key}")
188+
)
189+
```
190+
191+
**API Key** with environment variables set for `OPENAI_BASE_URL` and `OPENAI_API_KEY`:
192+
193+
```go
194+
client := openai.NewClient()
195+
```
196+
197+
198+
**Microsoft Entra ID**:
199+
200+
```go
201+
tokenCredential, err := azidentity.NewDefaultAzureCredential(nil)
202+
203+
client := openai.NewClient(
204+
option.WithBaseURL("https://YOUR-RESOURCE-NAME.openai.azure.com/openai/v1/"),
205+
azure.WithTokenCredential(tokenCredential)
206+
)
207+
```
208+
209+
# [Java](#tab/Java)
210+
211+
### v1 API
212+
213+
**API Key**:
214+
215+
```java
216+
217+
OpenAIClient client = OpenAIOkHttpClient.builder()
218+
.baseUrl("https://YOUR-RESOURCE-NAME.openai.azure.com/openai/v1/")
219+
.credential(AzureApiKeyCredential.create("{your-api-key}"))
220+
.build();
221+
```
222+
223+
**API Key** with environment variables set for `OPENAI_BASE_URL` and `OPENAI_API_KEY`:
224+
225+
```java
226+
OpenAIClient client = OpenAIOkHttpClient.builder()
227+
.fromEnv()
228+
.build();
229+
```
230+
231+
**Microsoft Entra ID**:
232+
233+
```java
234+
Credential tokenCredential = BearerTokenCredential.create(
235+
AuthenticationUtil.getBearerTokenSupplier(
236+
new DefaultAzureCredentialBuilder().build(),
237+
"https://cognitiveservices.azure.com/.default"));
238+
OpenAIClient client = OpenAIOkHttpClient.builder()
239+
.baseUrl("https://YOUR-RESOURCE-NAME.openai.azure.com/openai/v1/")
240+
.credential(tokenCredential)
241+
.build();
242+
```
243+
244+
# [REST](#tab/rest)
245+
246+
### v1 API
175247

176248
**API Key**:
177249

178250
```bash
179-
curl -X POST https://YOUR-RESOURCE-NAME.openai.azure.com/openai/v1/responses?api-version=preview \
251+
curl -X POST https://YOUR-RESOURCE-NAME.openai.azure.com/openai/v1/responses \
180252
-H "Content-Type: application/json" \
181253
-H "api-key: $AZURE_OPENAI_API_KEY" \
182254
-d '{
@@ -188,7 +260,7 @@ curl -X POST https://YOUR-RESOURCE-NAME.openai.azure.com/openai/v1/responses?api
188260
**Microsoft Entra ID**:
189261

190262
```bash
191-
curl -X POST https://YOUR-RESOURCE-NAME.openai.azure.com/openai/v1/responses?api-version=preview \
263+
curl -X POST https://YOUR-RESOURCE-NAME.openai.azure.com/openai/v1/responses \
192264
-H "Content-Type: application/json" \
193265
-H "Authorization: Bearer $AZURE_OPENAI_AUTH_TOKEN" \
194266
-d '{

articles/ai-foundry/openai/azure-government.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,27 @@ To request quota increases for these models, submit a request at [https://aka.ms
5656

5757
<br>
5858

59+
### Model Retirements
60+
In some cases, models are retired in Azure Governmen ahead of dates in the commercial cloud. General information on model retirement policies, dates, and other details can be found at [Azure OpenAI in Azure AI Foundry model deprecations and retirements](/azure/ai-foundry/openai/concepts/model-retirements). The following shows model retirement differences in Azure Government.
61+
62+
| Model | Version | Azure Government Status | Public Retirement date |
63+
| --------------------------|-------------------|:--------------------------|------------------------------------|
64+
| `gpt-35-turbo` | 1106 | Retired | November 11, 2025 |
65+
| `gpt-4` | turbo-2024-04-09 | Retired | November 11, 2025 |
66+
67+
<br>
68+
69+
### Deafault Model Versions
70+
In some cases, new model versions are designated as default in Azure Governmen ahead of dates in the commercial cloud. General information on model upgrades can be found at [Working with Azure OpenAI models](/azure/ai-foundry/openai/how-to/working-with-models?tabs=powershell&branch=main#model-deployment-upgrade-configuration)
71+
72+
The following shows default model differences in Azure Government.
73+
74+
| Model | Azure Government Default Version | Public Default Version | Default upgrade date |
75+
|-----------|----------------------------------|------------------------|-------------------------------|
76+
| `gpt-4o` | 2024-11-20 | 2024-08-06 | Starting on October 13, 2025 |
77+
78+
<br>
79+
5980
## Azure OpenAI features
6081

6182
The following feature differences exist when comparing Azure OpenAI in Azure Government vs commercial cloud.

articles/ai-foundry/responsible-ai/agents/transparency-note.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ Developers can connect an Agent to external systems, APIs, and services through
110110
* **Model Context Protocol tools** (a custom service connected via Model Context Protocol through an existing remote MCP server to an Agent).
111111
* **Deep Research tool**: (a tool that enables multi-step web-based research with the o3-deep-research model and Grounding with Bing Search.).
112112
* **Computer Use**: (a tool to perform tasks by interacting with computer systems and applications through their UIs)
113-
* **Browser Automation Tool** (a tool that can perform real-world browser tasks through natural language prompts, enabling automated browsing activities without human intervention in the middle)
113+
* **Browser Automation Tool** (a tool that can perform real-world browser tasks through natural language prompts, enabling automated browsing activities without human intervention in the middle)
114+
* **Image Generation** (a tool to generate and edit images)
114115

115116
#### Orchestrating multi-agent systems
116117

@@ -131,8 +132,9 @@ Azure AI Agent Service is **flexible and use-case agnostic.** This presents mult
131132
* **Government: Citizen Request Triage and Community Event Coordination:** A city clerk uses an agent to categorize incoming service requests (for example, pothole repairs), assign them to the right departments, and compile simple status updates; officials review and finalize communications to maintain transparency and accuracy.
132133
* **Education: Assisting with Research and Reference Gathering:** A teacher relies on an agent to gather age-appropriate articles and resources from reputable sources for a planetary science lesson; the teacher verifies the materials for factual accuracy and adjusts them to fit the curriculum, ensuring students receive trustworthy content.
133134
* **Manufacturing: Inventory Oversight and Task Scheduling:** A factory supervisor deploys an agent to monitor inventory levels, schedule restocking when supplies run low, and optimize shift rosters; management confirms the agent’s suggestions and retains final decision-making authority.
134-
* **Deep Research Tool**: Learn more about intended uses, capabilities, limitations, risks, and considerations when choosing a use case model with deep research technology in the [Azure OpenAI transparency note](../openai/transparency-note.md?tabs=text).
135+
* **Deep Research Tool**: Learn more about intended uses, capabilities, limitations, risks, and considerations when choosing a use case model with deep research technology in the [Azure OpenAI transparency note](/azure/ai-foundry/responsible-ai/openai/transparency-note?tabs=text).
135136
* **Computer Use**: The Computer Use tool comes with additional significant security and privacy risks, including prompt injection attacks. Learn more about intended uses, capabilities, limitations, risks, and considerations when choosing a use case in the [Azure OpenAI transparency note](../openai/transparency-note.md?tabs=image).
137+
* **Image Generation Tool**: The Image Generation tool is empowered by the gpt-image-1 model. Learn more about intended uses, capabilities, limitations, risks, and considerations when choosing a use case model in the [Azure OpenAI transparency note](/azure/ai-foundry/responsible-ai/openai/transparency-note?branch=main&tabs=image).
136138

137139
Agent code samples have specific intended uses that are configurable by developers to carefully build upon, implement, and deploy agents. See [list of Agent code samples](/azure/ai-foundry/agents/overview#agent-catalog).
138140

articles/ai-foundry/responsible-ai/openai/data-privacy.md

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,52 @@
11
---
2-
title: Data, privacy, and security for Azure OpenAI Service
2+
title: Data, privacy, and security for Azure Direct Models in Azure AI Foundry
33
titleSuffix: Azure AI services
44
description: This document details issues for data, privacy, and security for Azure OpenAI Service
55
author: mrbullwinkle
66
ms.author: mbullwin
77
manager: nitinme
88
ms.service: azure-ai-openai
99
ms.topic: article
10-
ms.date: 02/23/2024
10+
ms.date: 10/01/2025
1111
---
1212

13-
# Data, privacy, and security for Azure OpenAI Service
13+
# Data, privacy, and security for Azure Direct Models in Azure AI Foundry
1414

1515
[!INCLUDE [non-english-translation](../includes/non-english-translation.md)]
1616

17+
This article provides details regarding how data provided by you to Azure Direct Models in Azure AI Foundry are processed, used, and stored. Azure Direct Model means an AI model designated and deployed as an “Azure Direct Model” in Azure AI Foundry, and includes Azure OpenAI models. Azure Direct Models store and process data to provide the service and to monitor for uses that violate the applicable product terms. Please also see [Microsoft Products and Services Data Protection Addendum](https://aka.ms/DPA), which governs data processing by Azure Direct Models. Azure AI Foundry is an Azure service; [learn more](/compliance/regulatory/offering-home) about applicable Azure compliance offerings.
1718

18-
This article provides details regarding how data provided by you to the Azure OpenAI service is processed, used, and stored. Azure OpenAI stores and processes data to provide the service and to monitor for uses that violate the applicable product terms. Also see the [Microsoft Products and Services Data Protection Addendum](https://aka.ms/DPA), which governs data processing by the Azure OpenAI Service. Azure OpenAI is an Azure service; [learn more](/compliance/regulatory/offering-home) about applicable Azure compliance offerings.
1919

2020
> [!IMPORTANT]
2121
> Your prompts (inputs) and completions (outputs), your embeddings, and your training data:
22-
> - are NOT available to other customers.
23-
> - are NOT available to OpenAI.
24-
> - are NOT used to improve OpenAI models.
25-
> - are NOT used to train, retrain, or improve Azure OpenAI Service foundation models.
26-
> - are NOT used to improve any Microsoft or third party products or services without your permission or instruction.
27-
> - Your fine-tuned Azure OpenAI models are available exclusively for your use.
22+
> - are NOT available to other customers.
23+
> - are NOT available to OpenAI or other Azure Direct Model providers.
24+
> - are NOT used by Azure Direct Model providers to improve their models or services.
25+
> - are NOT used to train any generative AI foundation models without your permission or instruction.
26+
>
27+
> Your fine-tuned Azure OpenAI models are available exclusively for your use.
2828
>
2929
> The Azure OpenAI Service is operated by Microsoft as an Azure service; Microsoft hosts the OpenAI models in Microsoft's Azure environment and the Service does NOT interact with any services operated by OpenAI (e.g. ChatGPT, or the OpenAI API).
3030
31-
## What data does the Azure OpenAI Service process?
32-
33-
Azure OpenAI processes the following types of data:
31+
## What data does Azure AI Foundry process to provide Azure Direct Models?
3432

35-
- **Prompts and generated content**. Prompts are submitted by the user, and content is generated by the service, via the completions, chat completions, images, and embeddings operations.
36-
- **Uploaded data**. You can provide your own data for use with certain service features (e.g., [fine-tuning](/azure/ai-foundry/openai/how-to/fine-tuning?pivots=programming-language-studio), [assistants API](/azure/ai-foundry/openai/how-to/batch?tabs=standard-input&pivots=programming-language-ai-studio), [batch processing](/azure/ai-foundry/openai/how-to/batch?tabs=standard-input&pivots=programming-language-ai-studio)) using the Files API or vector store.
37-
- **Data for stateful entities**. When you use certain optional features of Azure OpenAI, such as the [Responses API](/azure/ai-foundry/openai/how-to/responses), the Threads feature of the [Assistants API](/azure/ai-foundry/openai/how-to/assistant), and Stored completions, the service creates a data store to persist message history and other content, in accordance with how you configure the feature.
33+
Azure AI Foundry processes the following types of data to provide Azure Direct Models:
34+
- **Prompts and generated content**. When prompts are submitted by the user, content is generated by the service, via the completions, chat completions, images, and embeddings operations.
35+
- **Uploaded data**. You can upload your own data for use with certain service features (e.g., [fine-tuning](/azure/ai-foundry/openai/how-to/fine-tuning?pivots=programming-language-studio), [assistants API](/azure/ai-foundry/openai/how-to/batch?tabs=standard-input&pivots=programming-language-ai-studio), [batch processing](/azure/ai-foundry/openai/how-to/batch?tabs=standard-input&pivots=programming-language-ai-studio)) using the Files API or vector store.
36+
- **Data for stateful entities**. When you use certain optional features of Azure Direct Models and Agents, such as the [Responses API](/azure/ai-foundry/openai/how-to/responses), the Threads feature of the [Assistants API](/azure/ai-foundry/openai/how-to/assistant), and Stored completions, the service creates a data store to persist message history and other content, in accordance with how you configure the feature.
3837
- **Augmented data included with or via prompts**. When you use data associated with stateful entities, the service retrieves relevant data from a configured data store and augments the prompt to produce generations that are grounded with your data. Prompts may also be augmented with data retrieved from a source included in the prompt itself, such as a URL.
3938
- **Training & validation data**. You can provide your own training data consisting of prompt-completion pairs for the purposes of [fine-tuning an OpenAI model](/azure/ai-foundry/openai/how-to/fine-tuning?pivots=programming-language-studio).
4039

41-
## How does the Azure OpenAI Service process data?
40+
## How does Azure AI Foundry process data to provide Azure Direct Models?
4241

4342
The diagram below illustrates how your data is processed. This diagram covers several types of processing:
4443

45-
1. How the Azure OpenAI Service processes your prompts via inferencing to generate content (including when additional data from a designated data source is added to a prompt using Azure OpenAI on your data, Assistants, or batch processing).
44+
1. How Azure AI Foundry processes your prompts via inferencing with Azure Direct Models to generate content (including when additional data from a designated data source is added to a prompt using Azure OpenAI on your data, Assistants, or batch processing).
4645
1. How the Assistants feature stores data in connection with Messages, Threads, and Runs.
4746
1. How the Responses API feature stores data to persist message history.
4847
1. How the Batch feature processes your uploaded data.
49-
1. How the Azure OpenAI Service creates a fine-tuned (custom) model with your uploaded data.
50-
1. How the Azure OpenAI Service and Microsoft personnel analyze prompts and completions (text and image) for harmful content and for patterns suggesting the use of the service in a manner that violates the Code of Conduct or other applicable product terms.
48+
1. How Azure AI Foundry creates a fine-tuned (custom) model with your uploaded data.
49+
1. How Azure AI Foundry and Microsoft personnel analyze prompts and completions (text and image) for harmful content and for patterns suggesting the use of the service in a manner that violates the Code of Conduct or other applicable product terms.
5150

5251
:::image type="content" source="media\flow-2.jpg" alt-text="Data flow diagram for the service." lightbox="media\flow-2.jpg":::
5352

0 commit comments

Comments
 (0)