Skip to content

Commit d86133f

Browse files
Merge pull request #6185 from aahill/july-fixes
note about connection strings
2 parents 4c59889 + 3619408 commit d86133f

File tree

5 files changed

+47
-14
lines changed

5 files changed

+47
-14
lines changed

articles/ai-foundry/agents/how-to/use-your-own-resources.md

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services: cognitive-services
66
manager: nitinme
77
ms.service: azure-ai-agent-service
88
ms.topic: how-to
9-
ms.date: 06/18/2025
9+
ms.date: 07/23/2025
1010
author: aahill
1111
ms.author: aahi
1212
ms.reviewer: fosteramanda
@@ -19,7 +19,29 @@ Use this article if you want to set up your Foundry project with your own resour
1919

2020
## Limitations
2121

22-
**Use Azure Cosmos DB for NoSQL to store threads**
22+
There are some limitations you should be aware of when you plan to use existing resources with the Azure AI Foundry Agent Service.
23+
24+
### If you are using a hub-based project or Azure OpenAI Assistants
25+
26+
At this time, there is no direct upgrade path to migrate existing agents or their associated data assets such as files, threads, or vector stores from a hub-based project to an Azure AI Foundry project. There is also no upgrade path to convert existing Azure OpenAI Assistants into Foundry Agents, nor a way to automatically migrate Assistants' files, threads, or vector stores.
27+
28+
You can reuse your existing model deployments and quota from Azure AI Services or Azure OpenAI resources within a Foundry project.
29+
30+
### SDK usage with hub-based projects
31+
32+
Starting in May 2025, the Azure AI Agent Service uses an endpoint for [Foundry projects](../../what-is-azure-ai-foundry.md#project-types) instead of the connection string that was used for hub-based projects before this time. Connection strings are no longer supported in current versions of the SDKs and REST API. We recommend creating a new foundry project.
33+
34+
If you want to continue using your hub-based project and connection string, you will need to:
35+
* Use the connection string for your project located under **Connection string** in the overview of your project.
36+
37+
:::image type="content" source="../../media/quickstarts/azure-ai-sdk/connection-string.png" alt-text="A screenshot showing the legacy connection string for a hub-based project.":::
38+
39+
* Use one of the previous versions of the SDK and the associated sample code:
40+
* [C#](https://github.com/Azure/azure-sdk-for-net/tree/feature/azure-ai-agents/sdk/ai/Azure.AI.Projects/samples): `1.0.0-beta.2` or earlier
41+
* [Python](https://github.com/Azure/azure-sdk-for-python/tree/feature/azure-ai-projects-beta10/sdk/ai/azure-ai-projects/samples/agents): `1.0.0b10` or earlier
42+
43+
### Azure Cosmos DB for NoSQL to store threads
44+
2345
- Your existing Azure Cosmos DB for NoSQL account used in a [standard setup](#choose-basic-or-standard-agent-setup) must have a total throughput limit of at least 3000 RU/s. Both provisioned throughput and serverless are supported.
2446
- Three containers will be provisioned in your existing Cosmos DB account, each requiring 1000 RU/s
2547

@@ -70,7 +92,7 @@ Includes everything in the basic setup and fine-grained control over your data b
7092

7193
## Basic agent setup: Use an existing Azure OpenAI resource
7294

73-
Replace the parameter value for `existingAoaiResourceId` with the full arm resource ID of the Azure OpenAI resource you want to use.
95+
Replace the parameter value for `existingAoaiResourceId`in the [template](https://github.com/azure-ai-foundry/foundry-samples/tree/main/samples/microsoft/infrastructure-setup/42-basic-agent-setup-with-customization) with the full arm resource ID of the Azure OpenAI resource you want to use.
7496

7597
1. To get the Azure OpenAI account resource ID, sign in to the Azure CLI and select the subscription with your AI Services account:
7698
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
manager: nitinme
3+
author: aahill
4+
ms.author: aahi
5+
ms.service: azure-ai-agent-service
6+
ms.topic: include
7+
ms.date: 07/23/2025
8+
---
9+
10+
> [!IMPORTANT]
11+
> Starting in May 2025, the Azure AI Agent Service uses an endpoint for [Foundry projects](../../what-is-azure-ai-foundry.md#project-types) instead of the connection string that was previously used for hub-based projects. If you're using a hub-based project, you won't be able to use the current versions of the SDK and REST API. For more information, see [SDK usage with hub-based projects](../how-to/use-your-own-resources.md#sdk-usage-with-hub-based-projects).

articles/ai-foundry/agents/includes/quickstart-csharp.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,11 @@ Use the following code to create and run an agent. To run this code, you will ne
4646

4747
`https://<AIFoundryResourceName>.services.ai.azure.com/api/projects/<ProjectName>`
4848

49-
[!INCLUDE [endpoint-string-portal](endpoint-string-portal.md)]
50-
51-
For example, your endpoint may look something like:
49+
[!INCLUDE [connection-string-deprecation](connection-string-deprecation.md)]
5250

53-
`https://myresource.services.ai.azure.com/api/projects/myproject`
51+
[!INCLUDE [endpoint-string-portal](endpoint-string-portal.md)]
5452

55-
Set this endpoint in an environment variable variable named `ProjectEndpoint`.
53+
Set this endpoint in an environment variable named `ProjectEndpoint`.
5654

5755
[!INCLUDE [model-name-portal](model-name-portal.md)]
5856

articles/ai-foundry/agents/includes/quickstart-python.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,15 @@ Use the following code to create and run an agent. To run this code, you will ne
4343

4444
`https://<AIFoundryResourceName>.services.ai.azure.com/api/projects/<ProjectName>`
4545

46+
[!INCLUDE [connection-string-deprecation](connection-string-deprecation.md)]
47+
4648
[!INCLUDE [endpoint-string-portal](endpoint-string-portal.md)]
4749

48-
For example, your endpoint may look something like:
50+
Set this endpoint as an environment variable named `PROJECT_ENDPOINT`.
4951

50-
`https://myresource.services.ai.azure.com/api/projects/myproject`
52+
[!INCLUDE [model-name-portal](model-name-portal.md)]
5153

52-
Set this endpoint as an environment variable named `PROJECT_ENDPOINT`.
54+
Save the name of your model deployment name as an environment variable named `MODEL_DEPLOYMENT_NAME`.
5355

5456
```python
5557
import os

articles/ai-foundry/agents/includes/quickstart-typescript.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ Use the following code to create and run an agent which uploads [a CSV file](htt
5858

5959
[!INCLUDE [endpoint-string-portal](endpoint-string-portal.md)]
6060

61-
For example, your endpoint looks something like:
61+
Set this endpoint as an environment variable named `PROJECT_ENDPOINT` in a `.env` file.
6262

63-
`https://myresource.services.ai.azure.com/api/projects/myproject`
63+
[!INCLUDE [model-name-portal](model-name-portal.md)]
6464

65-
Set this endpoint as an environment variable named `PROJECT_ENDPOINT` in a `.env` file.
65+
Save the name of your model deployment name as an environment variable named `MODEL_DEPLOYMENT_NAME`.
6666

6767
> [!IMPORTANT]
6868
> * This quickstart code uses environment variables for sensitive configuration. Never commit your `.env` file to version control by making sure `.env` is listed in your `.gitignore` file.

0 commit comments

Comments
 (0)