-
Notifications
You must be signed in to change notification settings - Fork 287
Open
Description
Description
When deploying a hosted agent following the official documentation, the deployment fails with ContainerProbesFailed error. The documentation doesn't clearly specify which health endpoint Azure Container Apps probes for readiness checks.
Environment
- Region: North Central US
- SDK: azure-ai-projects==2.0.0b3
- Hosting Adapter: azure-ai-agentserver-agentframework==1.0.0b9
- Agent Framework: agent-framework==1.0.0b260107
Steps to Reproduce
- Create a hosted agent following the documentation at https://learn.microsoft.com/en-us/azure/ai-foundry/agents/concepts/hosted-agents
- Use the sample Dockerfile pattern from the docs
- Deploy using
client.agents.create_version()andaz cognitiveservices agent start - Deployment stays in "Starting" status indefinitely
Error
Portal shows only one line in deployment logs:
[ContainerProbesFailed] User Error Occurred - Container readiness probes failed.
Root Cause Found
The Dockerfile in documentation examples uses:
HEALTHCHECK CMD curl -f http://localhost:8088/ || exit 1But the hosting adapter exposes /readiness endpoint, not /. Azure Container Apps probes /readiness.
Suggested Fix
- Update documentation to clarify that the hosting adapter provides
/readinessand/healthendpoints - Update sample Dockerfiles to use:
HEALTHCHECK CMD curl -f http://localhost:8088/readiness || exit 1- Document the expected health endpoints in the "Package code and test locally" section
Additional Issue: Container Log API Not Working
The documented REST API for viewing container logs returns UnsupportedAction:
Documented endpoint:
GET /agents/v2.0/.../containers/default:logstream?kind=console&tail=50
Response:
{"error":{"code":"UnsupportedAction","message":"The requested action 'agents/.../containers/default:logstream' is not supported"}}This makes troubleshooting deployment failures very difficult as the only diagnostic information is the single-line error in the portal.
Related Documentation
Metadata
Metadata
Assignees
Labels
No labels