Is there an existing issue for this?
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
Is there an existing issue for this?
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