Files
westey e224f06e60 .NET: Update models used in dotnet samples to gpt-5.4-mini (#5080)
* Update models used in dotnet samples to gpt-5.4-mini

* Fix additional missed sample
2026-04-07 15:34:00 +00:00

749 B

Agent Step 00 - FoundryAgent Lifecycle

This sample demonstrates the full lifecycle of a FoundryAgent backed by a server-side versioned agent in Microsoft Foundry: create → run → delete.

Prerequisites

  • A Microsoft Foundry project endpoint
  • A model deployment name (defaults to gpt-5.4-mini)
  • Azure CLI installed and authenticated

Environment Variables

Variable Description Required
AZURE_AI_PROJECT_ENDPOINT Microsoft Foundry project endpoint Yes
AZURE_AI_MODEL_DEPLOYMENT_NAME Model deployment name No (defaults to gpt-5.4-mini)

Running the sample

cd dotnet/samples/02-agents/AgentsWithFoundry
dotnet run --project .\Agent_Step00_FoundryAgentLifecycle