Skip to content

Commit 30497d8

Browse files
authored
Merge pull request #5458 from MicrosoftDocs/main
6/10/2025 AM Publish
2 parents cd157b7 + 82a653b commit 30497d8

File tree

6 files changed

+248
-53
lines changed

6 files changed

+248
-53
lines changed

articles/ai-foundry/foundry-local/reference/reference-rest.md

Lines changed: 39 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,6 @@ _---Standard OpenAI Properties---_
7878
The arguments to pass to the function.
7979
- `metadata` (object, optional)
8080
A dictionary of metadata key-value pairs.
81-
82-
_---Additional Foundry Local Properties---_
83-
8481
- `top_k` (number, optional)
8582
The number of highest probability vocabulary tokens to keep for top-k-filtering.
8683
- `random_seed` (integer, optional)
@@ -432,10 +429,32 @@ Sets the active GPU device.
432429

433430
Downloads a model to local storage.
434431

432+
> [!NOTE]
433+
> Model downloads can take significant time, especially for large models. We recommend setting a high timeout for this request to avoid premature termination.
434+
435435
**Request Body:**
436436

437-
- `model` (string)
438-
The model name to download.
437+
- `model` (`WorkspaceInferenceModel` object)
438+
- `Uri` (string)
439+
The model URI to download.
440+
- `Name` (string)
441+
The model name.
442+
- `ProviderType` (string, optional)
443+
The provider type (e.g., `"AzureFoundryLocal"`,`"HuggingFace"`).
444+
- `Path` (string, optional)
445+
The remote path where the model is located stored. For example, in a Hugging Face repository, this would be the path to the model files.
446+
- `PromptTemplate` (`Dictionary<string, string>`, optional)
447+
Contains:
448+
- `system` (string, optional)
449+
The template for the system message.
450+
- `user` (string, optional)
451+
The template for the user's message.
452+
- `assistant` (string, optional)
453+
The template for the assistant's response.
454+
- `prompt` (string, optional)
455+
The template for the user-assistant interaction.
456+
- `Publisher` (string, optional)
457+
The publisher of the model.
439458
- `token` (string, optional)
440459
Authentication token for protected models (GitHub or Hugging Face).
441460
- `progressToken` (object, optional)
@@ -467,12 +486,22 @@ During download, the server streams progress updates in the format:
467486

468487
- Request body
469488

470-
```json
471-
{
472-
"model": "Phi-4-mini-instruct-generic-cpu",
473-
"ignorePipeReport": true
489+
```json
490+
{
491+
"model":{
492+
"Uri": "azureml://registries/azureml/models/Phi-4-mini-instruct-generic-cpu/versions/4",
493+
"ProviderType": "AzureFoundryLocal",
494+
"Name": "Phi-4-mini-instruct-generic-cpu",
495+
"Publisher": "",
496+
"promptTemplate" : {
497+
"system": "<|system|>{Content}<|end|>",
498+
"user": "<|user|>{Content}<|end|>",
499+
"assistant": "<|assistant|>{Content}<|end|>",
500+
"prompt": "<|user|>{Content}<|end|><|assistant|>"
501+
}
474502
}
475-
```
503+
}
504+
```
476505

477506
- Response stream
478507

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
---
2+
title: 'How to use the SharePoint tool'
3+
titleSuffix: Azure AI Foundry
4+
description: Find examples on how to ground agents with SharePoint.
5+
services: cognitive-services
6+
manager: nitinme
7+
ms.service: azure-ai-agent-service
8+
ms.topic: how-to
9+
ms.date: 06/05/2025
10+
author: aahill
11+
ms.author: aahi
12+
ms.custom: azure-ai-agents-code
13+
zone_pivot_groups: selection-sharepoint
14+
---
15+
16+
# How to use the SharePoint tool
17+
18+
Use this article to find step-by-step instructions and code samples for using the SharePoint tool in Azure AI Foundry Agent Service.
19+
20+
## Create an agent
21+
22+
Follow the [REST API Quickstart](../../quickstart.md?pivots=rest-api#api-call-information) to set the right values for the environment variables `AGENT_TOKEN`, `AZURE_AI_FOUNDRY_PROJECT_ENDPOINT` and `API_VERSION`.
23+
24+
```bash
25+
curl --request POST \
26+
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/assistants?api-version=$API_VERSION \
27+
-H "Authorization: Bearer $AGENT_TOKEN" \
28+
-H "Content-Type: application/json" \
29+
-d '{
30+
"instructions": "You are a helpful agent.",
31+
"name": "my-agent",
32+
"model": "gpt-4o",
33+
"tools": [
34+
{
35+
"type": "sharepoint_grounding",
36+
"sharepoint_grounding": {
37+
"connections": [
38+
{
39+
"connection_id": "/subscriptions/<sub-id>/resourceGroups/<your-rg-name>/providers/Microsoft.CognitiveServices/accounts/<your-ai-services-name>/projects/<your-project-name>/connections/<your-sharepoint-connection-name>"
40+
}
41+
]
42+
}
43+
}
44+
]
45+
}'
46+
```
47+
48+
## Create a thread
49+
50+
```bash
51+
curl --request POST \
52+
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/threads?api-version=$API_VERSION \
53+
-H "Authorization: Bearer $AGENT_TOKEN" \
54+
-H "Content-Type: application/json" \
55+
-d ''
56+
```
57+
58+
### Add a user question to the thread
59+
60+
```bash
61+
curl --request POST \
62+
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/threads/thread_abc123/messages?api-version=$API_VERSION \
63+
-H "Authorization: Bearer $AGENT_TOKEN" \
64+
-H "Content-Type: application/json" \
65+
-d '{
66+
"role": "user",
67+
"content": "What is the weather in Seattle?"
68+
}'
69+
```
70+
71+
## Run the thread
72+
73+
```bash
74+
curl --request POST \
75+
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/threads/thread_abc123/runs?api-version=$API_VERSION \
76+
-H "Authorization: Bearer $AGENT_TOKEN" \
77+
-H "Content-Type: application/json" \
78+
-d '{
79+
"assistant_id": "asst_abc123",
80+
}'
81+
```
82+
83+
## Retrieve the status of the run
84+
85+
```bash
86+
curl --request GET \
87+
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/threads/thread_abc123/runs/run_abc123?api-version=$API_VERSION \
88+
-H "Authorization: Bearer $AGENT_TOKEN"
89+
```
90+
91+
## Retrieve the agent response
92+
93+
```bash
94+
curl --request GET \
95+
--url $AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/threads/thread_abc123/messages?api-version=$API_VERSION \
96+
-H "Authorization: Bearer $AGENT_TOKEN"
97+
```
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
title: 'How to use Microsoft SharePoint content with Azure AI Agent Service'
3+
titleSuffix: Azure OpenAI
4+
description: Learn how to ground Azure AI Agents using Microsoft SharePoint content.
5+
services: cognitive-services
6+
manager: nitinme
7+
ms.service: azure-ai-agent-service
8+
ms.topic: how-to
9+
ms.date: 06/05/2025
10+
author: aahill
11+
ms.author: aahi
12+
ms.custom: azure-ai-agents
13+
---
14+
# Use the Microsoft SharePoint tool (preview)
15+
16+
Integrate your agents with the **Microsoft SharePoint** to chat with your private documents securely. You can connect to your SharePoint site, such as `contoso.sharepoint.com/sites/policies` to ground your Agents with that data. When a user sends a query, the agent will determine if SharePoint should be leveraged or not. If so, it will send a query using the SharePoint tool, which checks if the user has a Microsoft 365 Copilot license and use managed identity to retrieve relevant documents they have access to. The scope of retrieval includes all supported documents in this SharePoint site. Lastly, the agent will generate responses based on retrieved information. With identity passthrough (On-Behalf-Of) authorization, this integration simplifies access to enterprise data in SharePoint while maintaining robust security, ensuring proper access control and enterprise-grade protection.
17+
18+
## Usage support
19+
20+
|Azure AI foundry support | Python SDK | C# SDK | JavaScript SDK | REST API |Basic agent setup | Standard agent setup |
21+
|---------|---------|---------|---------|---------|---------|---------|
22+
| ✔️ | - | - | - | ✔️ | ✔️ | ✔️ |
23+
24+
## Prerequisites
25+
26+
* Developers and end users have Microsoft 365 Copilot license.
27+
* Developers and end users have at least `Azure AI User` RBAC role.
28+
* Developers and end users have at least `READ` access to the SharePoint site.
29+
30+
## Setup
31+
32+
> [!NOTE]
33+
> * Supported document types: text data in the following format: `.pdf`, `.docx`, `.ppt`, `.txt`, `.aspx`
34+
> * We recommend you start with SharePoint sites that have: a simple folder structure and a small number of short documents.
35+
36+
1. Create an agent by following the steps in the [quickstart](../../quickstart.md).
37+
38+
1. You can add the SharePoint tool to an agent programatically using the code examples listed at the top of this article, or the Azure AI Foundry portal. If you want to use the portal, in either the **Create and debug** or **Agent playground** screen for your agent, scroll down the setup pane on the right to knowledge. Then select **Add**.
39+
40+
:::image type="content" source="../../media/tools/knowledge-tools.png" alt-text="A screenshot showing the available tool categories in the Azure AI Foundry portal." lightbox="../../media/tools/knowledge-tools.png":::
41+
42+
1. Select **SharePoint** and follow the prompts to add the tool. You can only add one per agent.
43+
44+
1. Click to add a new connection. Once you have added a connection, you can directly select from existing list.
45+
1. To create a new connection, you need to find `site_url` in your SharePoint site. You can add either a SharePoint site or a SharePoint folder. For a SharePoint site, it will look like `https://microsoft.sharepoint.com/teams/<site_name>`. For a SharePoint folder, it will look like `https://microsoft.sharepoint.com/teams/<site_name>/Shared%20documents/<folder_name>`
46+
47+
1. Then, you can add it to your connection. Make sure you have selected the **is secret** option.
48+
49+
## Next steps
50+
51+
[See the full sample for SharePoint.](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/ai/azure-ai-projects/samples/agents/sample_agents_sharepoint.py)

articles/ai-services/agents/toc.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,13 @@ items:
9393
displayName: azure functions, functions
9494
- name: How to use Azure Functions
9595
href: how-to/tools/azure-functions-samples.md
96+
- name: SharePoint
97+
items:
98+
- name: Overview
99+
href: how-to/tools/sharepoint.md
100+
displayName: sharepoint
101+
- name: How to use SharePoint
102+
href: how-to/tools/sharepoint-samples.md
96103
- name: Enterprise features
97104
items:
98105
- name: Use your own resources

articles/ai-services/openai/includes/fine-tune-models.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,24 @@ ms.custom:
2626
| `gpt-4o` (2024-08-06) | East US2 <br> North Central US <br> Sweden Central | - | Input: 128,000 <br> Output: 16,384 <br> Training example context length: 65,536 | Oct 2023 | Text & Vision to Text |
2727
| `gpt-4.1` (2025-04-14) | North Central US <br> Sweden Central || Input: 128,000 <br> Output: 16,384 <br> Training example context length: 65,536 | May 2024 | Text & Vision to Text |
2828
| `gpt-4.1-mini` (2025-04-14) | North Central US <br> Sweden Central || Input: 128,000 <br> Output: 16,384 <br> Training example context length: 65,536 | May 2024 | Text to Text |
29-
| `gpt-4.1-nano` (2025-04-14) | North Central US <br> Sweden Central | | Input: 128,000 <br> Output: 16,384 <br> Training example context length: 32,768 | May 2024 | Text to Text |
29+
| `gpt-4.1-nano` (2025-04-14) | North Central US <br> Sweden Central | - | Input: 128,000 <br> Output: 16,384 <br> Training example context length: 32,768 | May 2024 | Text to Text |
3030
| `o4-mini` (2025-04-16) | East US2 <br> Sweden Central | - | Input: 128,000 <br> Output: 16,384 <br> Training example context length: 65,536 | May 2024 | Text to Text |
3131

3232
> [!NOTE]
3333
> **Global** training (in Public Preview) provides [more affordable](https://aka.ms/aoai-pricing) training per-token, but does not offer [data residency](https://aka.ms/data-residency). It is currently available to Azure OpenAI resources in the following regions, with more regions coming soon:
3434
>- Australia East
3535
>- Brazil South
36+
>- EastUS2
3637
>- France Central
3738
>- Germany West Central
3839
>- Italy North
3940
>- Japan East _(no vision support)_
4041
>- Korea Central
42+
>- North Central US
4143
>- Norway East
4244
>- Poland Central
4345
>- Southeast Asia
44-
>- Spain Central
4546
>- South Africa North
47+
>- Spain Central
48+
>- Sweden Central
49+
>- Switzerland West

0 commit comments

Comments
 (0)