Microsoft Foundry Agent Testing and UI Experience

Umesh Dinkarrao Baradkar 0 Reputation points
2026-08-26T13:13:01.0966667+00:00

I'm currently working with 𝗠𝗶𝗰𝗿𝗼𝘀𝗼𝗳𝘁 𝗙𝗼𝘂𝗻𝗱𝗿𝘆 𝗔𝗴𝗲𝗻𝘁𝘀 and would love to learn from the community's real-world experience.

𝟭. 𝗟𝗼𝗮𝗱, 𝗦𝘁𝗿𝗲𝘀𝘀 & 𝗣𝗲𝗿𝗳𝗼𝗿𝗺𝗮𝗻𝗰𝗲 𝗧𝗲𝘀𝘁𝗶𝗻𝗴

• How are you performing load, stress, and performance testing for Foundry Agents?

• Traces help with token usage, latency, and diagnostics, but how do you simulate 𝟮𝟬+ 𝗰𝗼𝗻𝗰𝘂𝗿𝗿𝗲𝗻𝘁 𝘂𝘀𝗲𝗿𝘀 and measure:

• Scalability

• Reliability

• Throughput

• Response times under load

• Are you using tools such as 𝗝𝗠𝗲𝘁𝗲𝗿, 𝗟𝗼𝗰𝘂𝘀𝘁, 𝗸𝟲, 𝗔𝘇𝘂𝗿𝗲 𝗟𝗼𝗮𝗱 𝗧𝗲𝘀𝘁𝗶𝗻𝗴, 𝗼𝗿 𝗰𝘂𝘀𝘁𝗼𝗺 𝗣𝘆𝘁𝗵𝗼𝗻 𝘀𝗰𝗿𝗶𝗽𝘁𝘀?

𝟮. 𝗔𝗱𝗮𝗽𝘁𝗶𝘃𝗲 𝗖𝗮𝗿𝗱𝘀 & 𝗕𝗲𝘁𝘁𝗲𝗿 𝗨𝗜 𝗘𝘅𝗽𝗲𝗿𝗶𝗲𝗻𝗰𝗲

• Is there a recommended approach to use 𝗔𝗱𝗮𝗽𝘁𝗶𝘃𝗲 𝗖𝗮𝗿𝗱𝘀 or create a richer chatbot experience with Foundry Agents, similar to what we can achieve in Copilot Studio?

• Are you building custom web UIs (React, Teams apps, Bot Framework, etc.) on top of Foundry Agents?

Would appreciate any guidance, lessons learned, documentation, or examples from production implementations.

Foundry Agent Service
Foundry Agent Service

A fully managed platform in Microsoft Foundry for hosting, scaling, and securing AI agents built with any supported framework or model

0 comments No comments

1 answer

Sort by: Most helpful
  1. Allan Solomon Mejia 6,240 Reputation points
    2026-08-26T20:16:10.27+00:00

    Hello @Umesh Dinkarrao Baradkar

    For production testing, I would separate load generation from agent observability.

    1. Load, stress, and performance testing

    Microsoft Foundry tracing is useful for understanding individual agent executions: latency, exceptions, token consumption, tool calls, retrieval operations, etc. but, it isn't intended to simulate concurrent users. Microsoft documents Foundry tracing as an OpenTelemetry-based observability capability backed by Application Insights.

    For 20+ concurrent users, I would call the agent endpoint from an external load-testing tool. Azure Load Testing, k6, JMeter, Locust, or a custom async Python client can all work, depending on how your application exposes the agent.

    The useful pattern is:

    User's image

    During the test, measure at least:

    • End-to-end p50/p95/p99 response latency
    • Requests/conversations per second
    • Successful vs. failed requests
    • HTTP 429/5xx responses and retries
    • Model/token usage
    • Agent/tool-call latency
    • Dependency failures
    • Timeouts
    • Application-side CPU/memory if you host part of the solution yourself

    Foundry can then provide the per-request traces needed to determine where latency occurs. Microsoft recommends connecting Application Insights to the Foundry project; server-side tracing is then available for agents hosted in Foundry.

    Also remember that load testing an agent isn't exactly the same as testing a normal REST API. A single user request may result in several model calls, retrievals, and tool executions, so model quotas/rate limits and downstream dependencies can become the bottleneck before your application endpoint does.

    For some Foundry Agent Service configurations, concurrency is also a platform capacity consideration. For example, Microsoft documents regional concurrent-session capacity and subnet/IP requirements for network-isolated agent deployments.

    2. Adaptive Cards / richer UI

    I wouldn't make the Foundry Agent itself responsible for the presentation layer.

    A cleaner architecture is:

    User's image

    Foundry Agent Service provides the agent runtime, Responses API, models, tools, conversations, tracing, and related capabilities. Your application can provide the UX appropriate for the channel. (learn.microsoft.com)

    For a web application, React/Angular/etc. can render your own cards, tables, buttons, citations, progress indicators, streaming responses, and other components.

    For Teams/Microsoft 365 scenarios, Adaptive Cards are a good presentation option, but I would generate/render them in the application/channel integration layer, rather than treating Adaptive Cards as a native Foundry Agent UI capability.

    So for something comparable to the richer Copilot Studio experience, I'd typically use:

    Foundry Agent Service for intelligence/orchestration + your application or Teams layer for the UX + Application Insights/OpenTelemetry for observability.

    That also gives you much more control over production testing because you can load-test the same API/application path your real users will actually use.

    Sharing these references with you:

    Foundry Agent Service overview

    Agent tracing overview

    Set up tracing for Foundry agents

    Foundry Agent Service networking and concurrency

    Please "Accept the Answer" if this information helped you. This will help us and others in the community.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.