Skip to content

Commit 703e675

Browse files
committed
update env instructions
1 parent 4fc78ed commit 703e675

File tree

1 file changed

+24
-13
lines changed

1 file changed

+24
-13
lines changed

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

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -70,19 +70,6 @@ No installation is necessary to use the Azure AI Foundry portal.
7070
7171
1. [Install Java and Azure CLI](../how-to/develop/install-cli-sdk.md?pivots=programming-language-java).
7272
1. [!INCLUDE [find-endpoint](find-endpoint.md)]
73-
1. Set these environment variables to use in your scripts:
74-
75-
<!-- :::code language="plaintext" source="~/foundry-samples-main/samples/microsoft/java/mslearn-resources/quickstart/.env.template"::: -->
76-
77-
```txt
78-
AZURE_ENDPOINT=your_endpoint_here
79-
AZURE_DEPLOYMENT=your_deployment_name_here
80-
# Project ID (Optional - will be generated if not provided)
81-
PROJECT_ID=your_project_id_here
82-
MODEL_DEPLOYMENT_NAME=gpt-4o
83-
```
84-
85-
8673
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.
8774
1. Download [POM.XML](https://github.com/azure-ai-foundry/foundry-samples/blob/main/samples/microsoft/java/mslearn-resources/quickstart/pom.xml) to your Java IDE.
8875
@@ -158,6 +145,14 @@ Substitute your endpoint for the `endpoint` in this code:
158145
159146
# [Java (preview)](#tab/java)
160147
148+
Set these environment variables:
149+
150+
- **AZURE_ENDPOINT**: Required. The base endpoint for your Azure AI service.
151+
- AZURE_AI_API_KEY: Optional. The API key for authentication (falls back to DefaultAzureCredential if not provided).
152+
- AZURE_MODEL_DEPLOYMENT_NAME: Optional. The model deployment name (defaults to "phi-4").
153+
- AZURE_MODEL_API_PATH: Optional. The API path segment (defaults to "deployments").
154+
- CHAT_PROMPT: Optional. The prompt to send to the model (uses a default if not provided).
155+
161156
:::code language="java" source="~/foundry-samples-main/samples/microsoft/java/mslearn-resources/quickstart/src/main/java/com/azure/ai/foundry/samples/ChatCompletionSample.java" :::
162157
163158
# [JavaScript (preview)](#tab/javascript)
@@ -198,6 +193,14 @@ Substitute your endpoint for the `endpoint` in this code:
198193
199194
# [Java (preview)](#tab/java)
200195
196+
Set these environment variables:
197+
198+
- AZURE_ENDPOINT: Optional fallback. The base endpoint for your Azure AI service if PROJECT_ENDPOINT is not provided.
199+
- **PROJECT_ENDPOINT**: Required. The endpoint for your Azure AI Project.
200+
- MODEL_DEPLOYMENT_NAME: Optional. The model deployment name (defaults to "gpt-4o").
201+
- AGENT_NAME: Optional. The name to give to the created agent (defaults to "java-quickstart-agent").
202+
- AGENT_INSTRUCTIONS: Optional. The instructions for the agent (defaults to a helpful assistant).
203+
201204
:::code language="java" source="~/foundry-samples-main/samples/microsoft/java/mslearn-resources/quickstart/src/main/java/com/azure/ai/foundry/samples/AgentSample.java" :::
202205
203206
# [JavaScript (preview)](#tab/javascript)
@@ -243,6 +246,14 @@ Substitute your endpoint for the `endpoint` in this code:
243246
244247
# [Java (preview)](#tab/java)
245248
249+
Set these environment variables:
250+
251+
- AZURE_ENDPOINT: Optional fallback. The base endpoint for your Azure AI service if PROJECT_ENDPOINT is not provided.
252+
- **PROJECT_ENDPOINT**: Required. The endpoint for your Azure AI Project.
253+
- MODEL_DEPLOYMENT_NAME: Optional. The model deployment name (defaults to "gpt-4o").
254+
- AGENT_NAME: Optional. The name to give to the created agent (defaults to "java-file-search-agent").
255+
- AGENT_INSTRUCTIONS: Optional. The instructions for the agent (defaults to document-focused instructions).
256+
246257
:::code language="java" source="~/foundry-samples-main/samples/microsoft/java/mslearn-resources/quickstart/src/main/java/com/azure/ai/foundry/samples/FileSearchAgentSample.java" :::
247258
248259

0 commit comments

Comments
 (0)