r/MicrosoftFoundry • u/Successful_AI • Aug 08 '26
๐ Tutorial How to Create Your First Microsoft Foundry Agent
Microsoft provides an official quickstart for creating a prompt agent with Foundry Agent Service.
A prompt agent combines:
- A model
- System instructions
- User messages
- Tools
- Conversation history
- Agent configuration
Step 1: Prepare a Foundry project
You need a Microsoft Foundry resource, a project, and access to a supported model.
Setup guide:
Set up Microsoft Foundry resources
Step 2: Create a prompt agent
The official quickstart shows how to create and test an agent through Foundry.
Agent quickstart:
Create a prompt agent
Step 3: Define clear instructions
A basic agent instruction could look like this:
You are a technical assistant specializing in Microsoft Foundry.
Provide concise answers and link to official Microsoft documentation
when a reliable source is available.Good instructions should define:
- The agentโs role
- Its expected output
- Its restrictions
- When it should use tools
- How it should handle uncertainty
- Which information sources it should trust
Step 4: Test multiple scenarios
Test more than one successful prompt. Include:
- Ambiguous requests
- Missing information
- Incorrect user assumptions
- Long conversations
- Tool failures
- Unsafe requests
- Prompt-injection attempts
Step 5: Add tracing and evaluation
Do not treat a successful playground demonstration as production validation.
Agent Service overview:
What is Microsoft Foundry Agent Service?
3
u/LabITproTom Oct 28 '26
Good breakdown. Step 5 often gets overlooked. A prompt agent that looks great in the playground can still fall apart once you add grounding, tools, and real users, and you won't know unless you evaluate and trace it.
If anyone wants to go past the quickstart, I put together a fully guided, interactive lab project that builds a complete help desk agent in Foundry end to end: create the resource and project, deploy a chat model, shape it in the playground, ground it on IT policy docs and a Foundry IQ knowledge base, add web search with citations, run an evaluation against a test dataset with an AI judge, attach guardrails and Foundry roles, wire up Application Insights tracing and a budget, and finally publish it to Teams and Microsoft 365 Copilot.
It's 12 step-by-step labs, all browser-based, with no Azure subscription needed. It also lines up with AI-901/AI-103 if you're studying for those.
Build a Knowledge Assistant with Microsoft Foundry
Full disclosure: it's my site (labITpro), and the Foundry project is part of the All-Access Pass. There's a free lab collection on the site too if you want to try the format first.