Repository navigation
Python: Update Python Foundry hosted agent samples to use new "-t" (template) deployment instead of deprecated -m - #9402
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
The replacement template omits model provisioning required by the documented fresh-project setup.
1 open finding
What changed in this PR
Migrates the basic Python Foundry hosted-agent sample from deprecated manifest-based initialization to template-based deployment.
Changes:
- Adds
azure.yamland removes the basic sample’s legacy manifests. - Updates initialization commands to use
-tand revises deployment guidance.
| File | Description |
|---|---|
python/samples/04-hosting/foundry-hosted-agents/responses/basic/README.md |
Documents template-based initialization. |
python/samples/04-hosting/foundry-hosted-agents/responses/basic/azure.yaml |
Defines the Foundry project and hosted agent. |
python/samples/04-hosting/foundry-hosted-agents/responses/basic/agent.yaml |
Removes the legacy agent configuration. |
python/samples/04-hosting/foundry-hosted-agents/responses/basic/agent.manifest.yaml |
Removes the legacy deployment manifest. |
python/samples/04-hosting/foundry-hosted-agents/README.md |
Updates shared deployment and protocol guidance. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
| ai-project: | ||
| host: azure.ai.project |
|
Darren Cohen (@dargilco) Please set |
| ai-project: | ||
| host: azure.ai.project | ||
| agent-framework-agent-basic-responses: | ||
| project: . |
There was a problem hiding this comment.
Darren Cohen (@dargilco) The Docker build can include local azd environment files — azd stores each environment under .azure/<environment>/.env beside this azure.yaml. With project: ., the root becomes the Docker build context, and the sample Dockerfile uses COPY ., while .dockerignore does not exclude .azure/. Local configuration or secrets can therefore be copied into the image and pushed to the registry. Please exclude .azure/ or use a separate application build context.

Motivation & Context
Description & Review Guide
Related Issue
Fixes #
AI Assistance
AI assistance details:
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.