microsoft-foundry / microsoft-foundry/foundry-samples
Error when deploying hosted agent sample to Microsoft Foundry
Nobody has claimed this yet.
- Dominant language
- Bicep
- Stars
- 445
- Forks
- 494
- Avg merge
- 11h 35m
- Merged PRs (30d)
- 38
Description
When running azd up to deploy python sample for hosted agent under folder 'agent_with_hosted_mcp' I get this error-
ERROR: error executing step command 'provision': deployment failed: failed invoking event handlers for 'preprovision', extension azure.ai.agents project hook preprovision failed: failed to update environment for service "agent-with-hosted-mcp": agent.yaml is not valid: validation failed:
- template.kind must be one of: [prompt hosted workflow], got ''
My agent.yaml remains unchanged. It is same as in the sample. I see that template.kind is set to hosted.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in the agent_with_hosted_mcp sample and inspect agent.yaml alongside the reported azd up provision error. Reproduce the deployment and trace the preprovision validation of template.kind; done means the sample deploys successfully without the validation error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, python
- Domain
- ai, cloud
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100