This repository demonstrates how to deploy a Hosted Agent on Microsoft Foundry.
More information on my blog.
This repository includes a dev container configuration. To use it:
- Open this repository in VS Code
- When prompted, click "Reopen in Container" (or use
Dev Containers: Reopen in Containerfrom the command palette) - The container will automatically install all required tools (Azure CLI, azd, uv, Docker)
az login
azd auth login
azd upThis will:
- Provision the Azure infrastructure (Microsoft Foundry, Container Registry)
- Build and push the container image
- Deploy and start the hosted agent
# Only provision infrastructure
azd provision
# View deployment outputs
azd env get-values
# Delete all resources
azd downUse the link provided at the end of the deployment (🌐 View in portal) to access the playground and chat with your agent:
