Skip to content

.NET: Point remaining Foundry-migrated sample READMEs at FOUNDRY_* settings - #9760

Draft
Naveen Chatlapalli (1aifanatic) wants to merge 1 commit into
microsoft:mainfrom
1aifanatic:contrib/dotnet-readme-foundry-settings-followup
Draft

Naveen Chatlapalli (1aifanatic) wants to merge 1 commit into
microsoft:mainfrom
1aifanatic:contrib/dotnet-readme-foundry-settings-followup

Conversation

@1aifanatic

Copy link
Copy Markdown
Contributor

Motivation & Context

Follow-up to #9600. The samples below already read FOUNDRY_PROJECT_ENDPOINT and FOUNDRY_MODEL; Bounded Chat History also reads FOUNDRY_EMBEDDING_MODEL. Their READMEs still list the names from before the Foundry migration (#6557), which #9600 didn't cover:

README lists the sample reads
02-agents/AgentSkills/Agent_Step05_SkillsWithDI AZURE_OPENAI_ENDPOINT, AZURE_OPENAI_DEPLOYMENT_NAME FOUNDRY_PROJECT_ENDPOINT, FOUNDRY_MODEL
02-agents/AgentWithCodeAct/AgentWithCodeAct_Step01 / Step02 / Step03 same same
02-agents/AgentWithMemory/AgentWithMemory_Step03_MemoryUsingValkey same same
02-agents/AgentWithMemory/AgentWithMemory_Step05_BoundedChatHistory same + AZURE_OPENAI_EMBEDDING_DEPLOYMENT_NAME same + FOUNDRY_EMBEDDING_MODEL
03-workflows/Agents/GroupChatToolApproval AZURE_OPENAI_ENDPOINT, AZURE_OPENAI_DEPLOYMENT_NAME FOUNDRY_PROJECT_ENDPOINT, FOUNDRY_MODEL
03-workflows/_StartHere/06_MixedWorkflowAgentsAndExecutors same same
02-agents/Harness/Harness_Step01 / Step02 / Step03 AZURE_FOUNDRY_OPENAI_ENDPOINT (an /openai/v1/ URL) FOUNDRY_PROJECT_ENDPOINT

Following any of these READMEs fails at startup. For example, GroupChatToolApproval with only the README's variables set:

Unhandled exception. System.InvalidOperationException: FOUNDRY_PROJECT_ENDPOINT is not set.

Description & Review Guide

  • What are the major changes? README text only:
  • What is the impact of these changes? Documentation only.
  • What do you want reviewers to focus on? Nothing special.

I found these by comparing the environment variables each .NET sample README names with the strings its sources and config files contain. The hosted-agent READMEs also appear in that comparison, for AZURE_AI_AGENT_NAME and AZURE_TOKEN_CREDENTIALS. Those are read by the shared Using-Samples client and by Azure.Identity, so I left them unchanged.

Related Issue

N/A - trivial change: the READMEs are corrected to the variable names the samples already read, continuing #9600.

AI Assistance

  • No material AI assistance was used.
  • This is an AI-assisted contribution. I reviewed, understood, and verified all submitted content and accept responsibility for it.

AI assistance details: Claude Code helped compare README variables with each sample's sources, reproduce the startup failure, make the edits, and draft this description.

Contribution Checklist

  • The code builds clean without any errors or warnings
  • All unit tests pass, and I have added new tests where possible
  • The PR follows the Contribution Guidelines
  • This PR links to an agreed issue with no competing open PR, or the Related Issue section documents a trivial-change or repository-automation exception.
  • This is not a breaking change. If it is a breaking change, add the breaking change label (or add "[BREAKING]" to the title prefix, before or after any language prefix) — a workflow keeps the label and title prefix in sync automatically.

🤖 Generated with Claude Code

…ttings

Follow-up to #9600. These samples read FOUNDRY_PROJECT_ENDPOINT,
FOUNDRY_MODEL and FOUNDRY_EMBEDDING_MODEL, but their READMEs still list
AZURE_OPENAI_ENDPOINT / AZURE_OPENAI_DEPLOYMENT_NAME (or, for the Harness
samples, AZURE_FOUNDRY_OPENAI_ENDPOINT), so following them fails with
"FOUNDRY_PROJECT_ENDPOINT is not set."

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 27, 2026 12:54
@agent-framework-automation agent-framework-automation Bot added documentation Usage: [Issues, PRs], Target: documentation in the code base and learn docs .NET Usage: [Issues, PRs], Target: .Net workflows Usage: [Issues, PRs], Target: Workflows labels Oct 27, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The documentation corrections match the samples’ existing configuration, with no executable changes or unresolved issues.

No open issues 🎉

What changed in this PR

This documentation-only follow-up to #9600 aligns 11 .NET sample READMEs with the configuration already used after the Foundry migration.

Changes:

  • Replace legacy endpoint and deployment variables with the corresponding FOUNDRY_* settings.
  • Correct Harness endpoint examples to use Foundry project URLs.
  • Update prerequisites to reference Microsoft Foundry projects; executable code is unchanged.
File Description
dotnet/​samples/​03-workflows/​Agents/​GroupChatToolApproval/​README.md Correct Foundry prerequisites and configuration names.
dotnet/​samples/​03-workflows/​_StartHere/​06_MixedWorkflowAgentsAndExecutors/​README.md Align endpoint and model settings with the sample.
dotnet/​samples/​02-agents/​Harness/​Harness_Step03_DataProcessing/​README.md Correct the endpoint variable and project URL example.
dotnet/​samples/​02-agents/​Harness/​Harness_Step02_Research_WithBackgroundAgents/​README.md Specify the Foundry project prerequisite and endpoint variable.
dotnet/​samples/​02-agents/​Harness/​Harness_Step01_Research/​README.md Correct the endpoint variable and project URL example.
dotnet/​samples/​02-agents/​AgentWithMemory/​AgentWithMemory_Step05_BoundedChatHistory/​README.md Correct project, chat model, and embedding model settings.
dotnet/​samples/​02-agents/​AgentWithMemory/​AgentWithMemory_Step03_MemoryUsingValkey/​README.md Correct Foundry settings while preserving Valkey configuration.
dotnet/​samples/​02-agents/​AgentWithCodeAct/​AgentWithCodeAct_Step03_ManualWiring/​README.md Correct endpoint and model variable names.
dotnet/​samples/​02-agents/​AgentWithCodeAct/​AgentWithCodeAct_Step02_ToolEnabled/​README.md Correct endpoint and model variable names.
dotnet/​samples/​02-agents/​AgentWithCodeAct/​AgentWithCodeAct_Step01_Interpreter/​README.md Correct endpoint and model variable names.
dotnet/​samples/​02-agents/​AgentSkills/​Agent_Step05_SkillsWithDI/​README.md Align prerequisites and configuration with Foundry.

Review effort: Balanced

This branch was previously deployed

1 inactive deployment
github-app-auth — 2230db68 Deployed Oct 27, 2026 by 1aifanatic via team_check #7694
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Usage: [Issues, PRs], Target: documentation in the code base and learn docs .NET Usage: [Issues, PRs], Target: .Net workflows Usage: [Issues, PRs], Target: Workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants