What's happening
I built a Python agent using the sample in this repo (python/agent-framework/sample-agent)
and added Agent 365 observability to it. The telemetry is reaching Agent 365 — I can see
the traces in Microsoft Defender (Advanced Hunting, CloudAppEvents table) a few minutes
after I chat with the agent.
The problem: the same traces do NOT show up in the Microsoft 365 admin center, under
Agents → my agent → Activity tab. That tab stays empty and says "Nothing to show"
(Total sessions: 0), even though the traces are clearly in Defender.
My setup
- Tenant has Microsoft Agent 365 and Microsoft 365 E5 licenses, both assigned to a user
(not just owned by the tenant)
- I created the blueprint and agent identity by running
a365 setup all. It granted the
Observability OtelWrite permission to the blueprint, and the agent identity has its
federated identity credential.
- Blueprint app ID: 3206eb8b-1902-448f-84d2-45bc8e30ec51
- Agent identity app ID: 08165898-aac2-42b3-81fd-a1809f25cbd5
- I'm running the agent locally (not deployed) and testing it with the M365 Agents Playground
- I'm using the S2S observability path. The agent gets its observability token through the
3-step FMI chain (blueprint secret → blueprint federated credential → agent identity →
observability token). The token is acquired successfully every time.
What works
- The agent exports telemetry with no errors. It posts successfully to
agent365.svc.cloud.microsoft.
- In Defender's CloudAppEvents, I see InvokeAgent and InferenceCall rows.
- On each record, these fields are correct:
- TargetAgentId = 08165898-aac2-42b3-81fd-a1809f25cbd5 (my agent identity)
- TargetAgentBlueprintID = 3206eb8b-1902-448f-84d2-45bc8e30ec51 (my blueprint)
The issue
On those same records, the top-level identity fields are all zeros:
- AgentId = 00000000-0000-0000-0000-000000000000
- AgentBlueprintId = 00000000-0000-0000-0000-000000000000
- UserId = N/A
- UserKey = 00000000-0000-0000-0000-000000000000
So the traces are in Defender, but the admin center Activity tab shows nothing.
My questions
-
What fills in the top-level AgentId and AgentBlueprintId fields? They look like they
come from the Agent 365 backend, not from my agent's telemetry — because the
TargetAgentId and TargetAgentBlueprintID (which come from my telemetry) are correct,
but the top-level ones are zeros. The documentation doesn't explain the difference.
-
Does the admin center Activity tab use the top-level AgentId/AgentBlueprintId (the
zeroed ones) to find an agent's activity, instead of the TargetAgentId? If so, what do
I need to do to get those filled in?
-
Should the Activity tab show data for an agent that's running locally and tested through
the Agents Playground? Or does it only work for a deployed agent that's invoked by a
real user (for example, from Teams or email)?
-
I currently have two registrations for the same agent (both named "eppcgovagent Agent"),
because I ran a365 setup all twice. Could a duplicate or stale registration be the
reason the backend can't link my traces to the agent?
I'm happy to share the full telemetry output, my export logs, or do a screen share.
What's happening
I built a Python agent using the sample in this repo (python/agent-framework/sample-agent)
and added Agent 365 observability to it. The telemetry is reaching Agent 365 — I can see
the traces in Microsoft Defender (Advanced Hunting, CloudAppEvents table) a few minutes
after I chat with the agent.
The problem: the same traces do NOT show up in the Microsoft 365 admin center, under
Agents → my agent → Activity tab. That tab stays empty and says "Nothing to show"
(Total sessions: 0), even though the traces are clearly in Defender.
My setup
(not just owned by the tenant)
a365 setup all. It granted theObservability OtelWrite permission to the blueprint, and the agent identity has its
federated identity credential.
3-step FMI chain (blueprint secret → blueprint federated credential → agent identity →
observability token). The token is acquired successfully every time.
What works
agent365.svc.cloud.microsoft.
The issue
On those same records, the top-level identity fields are all zeros:
So the traces are in Defender, but the admin center Activity tab shows nothing.
My questions
What fills in the top-level AgentId and AgentBlueprintId fields? They look like they
come from the Agent 365 backend, not from my agent's telemetry — because the
TargetAgentId and TargetAgentBlueprintID (which come from my telemetry) are correct,
but the top-level ones are zeros. The documentation doesn't explain the difference.
Does the admin center Activity tab use the top-level AgentId/AgentBlueprintId (the
zeroed ones) to find an agent's activity, instead of the TargetAgentId? If so, what do
I need to do to get those filled in?
Should the Activity tab show data for an agent that's running locally and tested through
the Agents Playground? Or does it only work for a deployed agent that's invoked by a
real user (for example, from Teams or email)?
I currently have two registrations for the same agent (both named "eppcgovagent Agent"),
because I ran
a365 setup alltwice. Could a duplicate or stale registration be thereason the backend can't link my traces to the agent?
I'm happy to share the full telemetry output, my export logs, or do a screen share.