Skip to content

Error when deploying hosted agent sample to Microsoft Foundry #411

@vidyann

Description

@vidyann

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions