Repository navigation
.NET: Point remaining Foundry-migrated sample READMEs at FOUNDRY_* settings - #9760
Draft
Naveen Chatlapalli (1aifanatic) wants to merge 1 commit into
Conversation
…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>
Naveen Chatlapalli (1aifanatic)
temporarily deployed
to
github-app-auth
October 27, 2026 12:54 — with
GitHub Actions
Inactive
Naveen Chatlapalli (1aifanatic)
temporarily deployed
to
github-app-auth
October 27, 2026 12:54 — with
GitHub Actions
Inactive
Contributor
There was a problem hiding this comment.
🟢 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation & Context
Follow-up to #9600. The samples below already read
FOUNDRY_PROJECT_ENDPOINTandFOUNDRY_MODEL; Bounded Chat History also readsFOUNDRY_EMBEDDING_MODEL. Their READMEs still list the names from before the Foundry migration (#6557), which #9600 didn't cover:02-agents/AgentSkills/Agent_Step05_SkillsWithDIAZURE_OPENAI_ENDPOINT,AZURE_OPENAI_DEPLOYMENT_NAMEFOUNDRY_PROJECT_ENDPOINT,FOUNDRY_MODEL02-agents/AgentWithCodeAct/AgentWithCodeAct_Step01/Step02/Step0302-agents/AgentWithMemory/AgentWithMemory_Step03_MemoryUsingValkey02-agents/AgentWithMemory/AgentWithMemory_Step05_BoundedChatHistoryAZURE_OPENAI_EMBEDDING_DEPLOYMENT_NAMEFOUNDRY_EMBEDDING_MODEL03-workflows/Agents/GroupChatToolApprovalAZURE_OPENAI_ENDPOINT,AZURE_OPENAI_DEPLOYMENT_NAMEFOUNDRY_PROJECT_ENDPOINT,FOUNDRY_MODEL03-workflows/_StartHere/06_MixedWorkflowAgentsAndExecutors02-agents/Harness/Harness_Step01/Step02/Step03AZURE_FOUNDRY_OPENAI_ENDPOINT(an/openai/v1/URL)FOUNDRY_PROJECT_ENDPOINTFollowing any of these READMEs fails at startup. For example,
GroupChatToolApprovalwith only the README's variables set:Description & Review Guide
Program.csreads.https://<service>.services.ai.azure.com/api/projects/<project>).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_NAMEandAZURE_TOKEN_CREDENTIALS. Those are read by the sharedUsing-Samplesclient 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
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
breaking changelabel (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