You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -112,6 +112,22 @@ No installation is necessary to use the Azure AI Foundry portal.
112
112
> [!TIP]
113
113
> 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).
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
+
115
131
---
116
132
117
133
## Run a chat completion
@@ -146,6 +162,12 @@ Substitute your value for the endpoint in this code:
0 commit comments