Skip to content

Commit 6642086

Browse files
committed
1rp changes
1 parent 18e2ce4 commit 6642086

File tree

5 files changed

+18
-24
lines changed

5 files changed

+18
-24
lines changed

articles/ai-services/agents/includes/connection-string-portal.md

Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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: 12/11/2024
8+
---
9+
10+
> [!TIP]
11+
> You can also find your connection string in the **overview** for your project in the [Azure AI Foundry portal](https://ai.azure.com/), under **Libraries** > **Azure AI Foundry**.
12+
> :::image type="content" source="../media/quickstart/portal-endpoint-string.png" alt-text="A screenshot showing the connection string in the Azure AI Foundry portal." lightbox="../media/quickstart/portal-endpoint-string.png":::

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

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -57,23 +57,17 @@ Next, to authenticate your API requests and run the program, use the [az login](
5757
az login
5858
```
5959

60-
Use the following code to create and run an agent. To run this code, you will need to create a connection string using information from your project. This string is in the format:
60+
Use the following code to create and run an agent. To run this code, you will need to get the endpoint for your project. This string is in the format:
6161

62-
`<HostName>;<AzureSubscriptionId>;<ResourceGroup>;<ProjectName>`
62+
`https://<AIFoundryResourceName>.services.ai.azure.com/api/projects/<ProjectName>`
6363

64-
[!INCLUDE [connection-string-portal](connection-string-portal.md)]
65-
66-
`HostName` can be found by navigating to your `discovery_url` and removing the leading `https://` and trailing `/discovery`. To find your `discovery_url`, run this CLI command:
67-
68-
```azurecli
69-
az ml workspace show -n {project_name} --resource-group {resource_group_name} --query discovery_url
70-
```
64+
[!INCLUDE [endpoint-string-portal](endpoint-string-portal.md)]
7165

7266
For example, your connection string may look something like:
7367

74-
`eastus.api.azureml.ms;12345678-abcd-1234-9fc6-62780b3d3e05;my-resource-group;my-project-name`
68+
`https://myresource.services.ai.azure.com/api/projects/myproject`
7569

76-
Set this connection string as an environment variable named `PROJECT_CONNECTION_STRING`.
70+
Set this connection string as an environment variable named `ENDPOINT_STRING`.
7771

7872

7973
```csharp
@@ -90,7 +84,7 @@ public class Sample_Agent
9084
{
9185
static async Task Main()
9286
{
93-
var connectionString = Environment.GetEnvironmentVariable("PROJECT_CONNECTION_STRING");
87+
var connectionString = Environment.GetEnvironmentVariable("ENDPOINT_STRING");
9488

9589
AgentsClient client = new AgentsClient(connectionString, new DefaultAzureCredential());
9690

Binary file not shown.
65.8 KB
Loading

0 commit comments

Comments
 (0)