Skip to main content
In this quickstart, you deploy and invoke a hosted agent in Foundry Agent Service. Choose the development tool or SDK that fits your workflow. If you use a coding agent like GitHub Copilot, the Microsoft Foundry Skill can help you pick a development path and complete the setup, deployment, and invocation steps.

Prerequisites

Before you begin, you need:
  • An Azure subscription. If you don’t have one, create one for free.
  • If you have an existing Foundry project, you need Foundry Project Manager at project scope. If you need to create a new Foundry project, you need the Owner role at resource group scope. For the full role matrix, see Hosted agent permissions reference.

Clean up resources

Delete the resources when you’re finished so you stop incurring charges.

Troubleshooting

For the full permission and role-assignment matrix, see Hosted agent permissions reference.

What you learned

In this quickstart, you:
  • Scaffolded a hosted agent project from the Basic agent sample.
  • Uploaded and routed a hosted agent version with the Python or C# SDK, or scaffolded the sample with Azure Developer CLI.
  • Tested the agent locally.
  • Deployed the agent to Foundry Agent Service.
  • Sent test prompts from the Python or C# SDK, Azure Developer CLI, VS Code, Foundry canvas, or a coding agent that uses the Microsoft Foundry Skill.

Next step

Build a toolbox and use it with a hosted agent