Skip to content

Commit d09db52

Browse files
authored
Merge pull request #5019 from sdgilley/sdg-fix-qs
Fix quickstart
2 parents 86e0b02 + 16884db commit d09db52

File tree

4 files changed

+41
-6
lines changed

4 files changed

+41
-6
lines changed

articles/ai-foundry/how-to/develop/install-cli-sdk.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ Install [Node.js](https://nodejs.org/)
5151

5252
::: zone-end
5353

54+
<a name="installs"></a>
5455

55-
## <a name="installs"></a> Install the Azure CLI and sign in
56+
## Install the Azure CLI and sign in
5657

5758
[!INCLUDE [Install the Azure CLI](../../includes/install-cli.md)]
5859

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

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ No installation is necessary to use the Azure AI Foundry portal.
8484
8585
# [JavaScript (preview)](#tab/javascript)
8686
87-
1. [Install JavaScript and Azure CLI](../how-to/develop/install-cli-sdk.md?pivots=programming-language-javascript)
87+
1. [Install Node.js and Azure CLI](../how-to/develop/install-cli-sdk.md?pivots=programming-language-javascript)
8888
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.
8989
1. Download [package.json](https://github.com/azure-ai-foundry/foundry-samples/blob/main/samples/microsoft/javascript/mslearn-resources/quickstart/package.json).
9090
1. Install packages with `npm install`
@@ -112,6 +112,22 @@ No installation is necessary to use the Azure AI Foundry portal.
112112
> [!TIP]
113113
> All the code in this article is at [GitHub Quickstart](https://github.com/azure-ai-foundry/foundry-samples/tree/main/samples/microsoft/csharp/mslearn-resources/quickstart).
114114
115+
# [REST API](#tab/rest)
116+
117+
1. [Install Azure CLI](../how-to/develop/install-cli-sdk.md#installs)
118+
1. Make sure to sign in using the CLI `az login` (or `az login --use-device-code`) command to authenticate before running the next command.
119+
1. Get a temporary access token. It will expire in 60-90 minutes, you'll need to refresh after that.
120+
121+
```azurecli
122+
az account get-access-token --scope https://ai.azure.com/.default
123+
```
124+
125+
1. Save the results as the environment variable `AZURE_AI_AUTH_TOKEN`.
126+
127+
> [!TIP]
128+
> All the code in this article is at [GitHub Quickstart](https://github.com/azure-ai-foundry/foundry-samples/tree/main/samples/microsoft/REST/mslearn-resources/quickstart).
129+
130+
115131
---
116132
117133
## Run a chat completion
@@ -146,6 +162,12 @@ Substitute your value for the endpoint in this code:
146162
147163
:::code language="csharp" source="~/foundry-samples/samples/microsoft/csharp/mslearn-resources/quickstart/Samples/SimpleInference.cs" id="chat_completion":::
148164
165+
# [REST API](#tab/rest)
166+
167+
Replace `YOUR-FOUNDRY-RESOURCE-NAME` with your values:
168+
169+
:::code language="console" source="~/foundry-samples/samples/microsoft/REST/mslearn-resources/quickstart/quickstart.sh" id="chat_completion":::
170+
149171
---
150172
151173
## Create and run an agent
@@ -178,6 +200,13 @@ Agents allow more powerful capabilities through the use of tools. First, let's w
178200
179201
:::code language="csharp" source="~/foundry-samples/samples/microsoft/csharp/mslearn-resources/quickstart/Samples/AgentService.cs" id="create_and_run_agent" :::
180202
203+
# [REST API](#tab/rest)
204+
205+
Replace `YOUR-FOUNDRY-RESOURCE-NAME` and `YOUR-PROJECT-NAME` with your values:
206+
207+
:::code language="console" source="~/foundry-samples/samples/microsoft/REST/mslearn-resources/quickstart/quickstart.sh" id="create_and_run_agent":::
208+
209+
181210
---
182211
183212
## Add files to the agent
@@ -215,6 +244,12 @@ Now let's add a file search tool that enables us to do knowledge retrieval.
215244
216245
:::code language="csharp" source="~/foundry-samples/samples/microsoft/csharp/mslearn-resources/quickstart/Samples/AgentFileSearch.cs" id="create_filesearch_agent":::
217246
247+
# [REST API](#tab/rest)
248+
249+
Replace `YOUR-FOUNDRY-RESOURCE-NAME` and `YOUR-PROJECT-NAME` with your values:
250+
251+
:::code language="console" source="~/foundry-samples/samples/microsoft/REST/mslearn-resources/quickstart/quickstart.sh" id="create_filesearch_agent":::
252+
218253
---
219254
220255
@@ -226,4 +261,4 @@ In the Azure AI Foundry portal, select your project name in the top right corner
226261
227262
## Related content
228263
229-
[Azure AI Foundry SDK Overview](../how-to/develop/sdk-overview.md)
264+
[Azure AI Foundry client library overview](../how-to/develop/sdk-overview.md)

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,5 @@ To work with Azure AI services in your .NET project, you'll need to install seve
1717
dotnet add package Azure.Identity
1818
dotnet add package Azure.AI.Projects
1919
dotnet add package Azure.AI.Agents.Persistent
20-
dotnet add package Azure.AI.OpenAI
21-
dotnet add package Azure.Search.Documents
20+
dotnet add package Azure.AI.Inference
2221
```

articles/ai-foundry/quickstarts/get-started-code.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ titleSuffix: Azure AI Foundry
44
description: This article provides instructions on how to start using the Azure AI Foundry portal and the Azure AI Foundry SDK.
55
manager: scottpolly
66
ms.service: azure-ai-foundry
7-
ms.custom: build-2024, devx-track-azurecli, devx-track-python, ignite-2024, update-code2
7+
ms.custom: build-2024, devx-track-azurecli, devx-track-python, ignite-2024, update-code3
88
ms.topic: how-to
99
ms.date: 05/12/2025
1010
ms.reviewer: dantaylo

0 commit comments

Comments
 (0)