Skip to content

Issues with Aspire (using .net) + Azure AI Foundry #15968

@sayedihashimi

Description

@sayedihashimi

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

I've been trying to create an Aspire (full .net implementation) app that gets deployed to Foundry as a hosted agent.

The app that I tried creating is at https://github.com/sayedihashimi/foundry-agent-quickstart/tree/main/src/sample-hosted-agent. It may work locally, but it's not possible to deploy it to Foundry.

I was able to get an ACA version successfully working, the code is in the same repo.

From internal discussions we think that the issue is that PublishAsHostedAgent wants a T type of ExecutableResource, while doing builder.AddProject() will give you a ProjectResource.

I also had copilot do some analysis, it's findings are at https://github.com/sayedihashimi/foundry-agent-quickstart/blob/main/learnings/capability-host-provisioning-bug-report.md

cc @eerhardt @maddymontaquila @tommasodotNET

Expected Behavior

No response

Steps To Reproduce

No response

Exceptions (if any)

No response

Aspire doctor output

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-area-labelAn area label is needed to ensure this gets routed to the appropriate area owners

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions