Skip to content

Commit 340517b

Browse files
authored
Merge pull request #4819 from sdgilley/sdg-update-qs-env
add environment variables
2 parents ee7c4e0 + 31356d0 commit 340517b

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

articles/ai-foundry/includes/get-started-fdp.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ No installation is necessary to use the Azure AI Foundry portal.
4444
```
4545
pip install openai azure-ai-projects azure-identity
4646
```
47+
4748
1. Make sure to sign in using the CLI `az login` (or `az login --use-device-code`) command to authenticate before running your Python scripts.
4849
4950
> [!TIP]
@@ -52,6 +53,10 @@ No installation is necessary to use the Azure AI Foundry portal.
5253
# [Java](#tab/java)
5354
5455
1. [Install Java and Azure CLI](../how-to/develop/install-cli-sdk.md?pivots=programming-language-java).
56+
1. Set these environment variables to use in your scripts:
57+
58+
:::code language="plaintext" source="~/foundry-samples/samples/microsoft/java/mslearn-resources/quickstart/.env.template":::
59+
5560
1. Make sure to sign in using the CLI `az login` (or `az login --use-device-code`) command to authenticate before running your Java scripts.
5661
5762
> [!TIP]
@@ -63,6 +68,10 @@ No installation is necessary to use the Azure AI Foundry portal.
6368
1. Make sure to sign in using the CLI `az login` (or `az login --use-device-code`) command to authenticate before running your JavaScript scripts.
6469
1. Download [package.json](https://github.com/azure-ai-foundry/foundry-samples/blob/main/samples/microsoft/javascript/mslearn-resources/quickstart/package.json).
6570
1. Install packages with `npm install`
71+
1. Set these environment variables to use in your scripts:
72+
73+
:::code language="plaintext" source="~/foundry-samples/samples/microsoft/javascript/mslearn-resources/quickstart/.env.template":::
74+
6675
6776
> [!TIP]
6877
> All the code in this article is at [GitHub Quickstart](https://github.com/azure-ai-foundry/foundry-samples/tree/main/samples/microsoft/javascript/mslearn-resources/quickstart).
@@ -74,6 +83,10 @@ No installation is necessary to use the Azure AI Foundry portal.
7483
7584
[!INCLUDE [install-csharp-packages](install-csharp-packages.md)]
7685
86+
1. Set these environment variables to use in your scripts:
87+
88+
:::code language="plaintext" source="~/foundry-samples/samples/microsoft/csharp/mslearn-resources/quickstart/Samples/.env.example":::
89+
7790
1. Make sure to sign in using the CLI `az login` (or `az login --use-device-code`) command to authenticate before running your C# scripts.
7891
7992
> [!TIP]
@@ -114,6 +127,8 @@ Use either the Azure AI Foundry portal or Azure CLI to create a project.
114127
115128
# [Python SDK](#tab/python)
116129
130+
Substitute your value for the endpoint in this code:
131+
117132
:::code language="python" source="~/foundry-samples/samples/microsoft/python/mslearn-resources/quickstart/quickstart.py" id="chat_completion":::
118133
119134

articles/ai-foundry/includes/install-csharp-packages.md

Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,13 @@ ms.date: 04/30/2025
1010
ms.custom: include, build-2025
1111
---
1212

13-
* To work with Azure AI services in your .NET project, you'll need to install several NuGet packages. You can add NuGet packages using the .NET CLI in the integrated terminal:
13+
To work with Azure AI services in your .NET project, you'll need to install several NuGet packages. Add NuGet packages using the .NET CLI in the integrated terminal:
1414

15-
16-
```bash
17-
# Add Azure AI SDK packages
18-
dotnet add package Azure.Identity
19-
dotnet add package Azure.AI.Projects
20-
dotnet add package Azure.AI.Agents.Persistant
21-
dotnet add package Azure.AI.OpenAI
22-
dotnet add package Azure.Search.Documents
23-
```
24-
25-
26-
* After installing these packages, you'll need to add the appropriate using directives to your C# files:
27-
28-
```csharp
29-
using Azure.AI.Foundry.Projects;
30-
using Azure.Identity;
31-
using Azure.AI.OpenAI;
32-
using Azure.Search.Documents;
33-
// Add other namespaces as needed
34-
```
35-
36-
37-
15+
```bash
16+
# Add Azure AI SDK packages
17+
dotnet add package Azure.Identity
18+
dotnet add package Azure.AI.Projects
19+
dotnet add package Azure.AI.Agents.Persistant
20+
dotnet add package Azure.AI.OpenAI
21+
dotnet add package Azure.Search.Documents
22+
```

0 commit comments

Comments
 (0)