microsoft-foundry / microsoft-foundry/foundry-samples

Error when deploying hosted agent sample to Microsoft Foundry

Open
#411 2 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.