Skip to main content

Manage agents in Foundry Control Plane

Microsoft Foundry Control Plane provides centralized management and observability for agents running across various platforms and infrastructures. Use Control Plane to gain a unified view of agents across your subscription, monitor their health, control their lifecycle, and troubleshoot issues from a single pane of glass. This article explains how to view your agent inventory, monitor agent health, and perform lifecycle operations by using the Foundry portal.

Prerequisites

Agent inventory

The Assets pane provides a unified, searchable table of all AI assets across projects within a subscription. This inventory brings together critical metadata and health indicators, so you can assess and act on your AI estate efficiently. Foundry Control Plane automatically discovers supported agents within resources in the selected subscription and displays them on the Agents tab. To view them, select Operate > Assets > Agents.
Screenshot of the tab that contains an inventory of agents.
The following information appears:
ColumnDescriptionAgent platform
NameThe name of the agent or the agentic resource.All
SourceThe source platform where the agent or resource was discovered. See the list of supported platforms later in this article.All
ProjectThe Foundry project associated with the agent. For custom agents, it’s the project where the agent was registered.Foundry

Custom
StatusRefers to a broad range of conditions, including operational, health, or lifecycle status of the agent. Agents transition to different values, depending on the platform and lifecycle operations. Possible values are: - Running
- Stopped
- Blocked
- Unblocked
- Unknown
All
VersionThe version of the agent asset.Foundry
Published asIndicates if the agent was published as an agent application. Published agents in Foundry have their own endpoint for invocation.Foundry
Error rateThe proportion of failed runs compared to successful ones in the last month. This column requires observability configured.All
Estimated costThe estimated cost of the agent executions in the last month, based on the number of tokens consumed. This column requires observability configured.Foundry
Token usageThe estimated tokens consumed by the runs in the last month. This column requires observability configured.Foundry
RunsThe number of executions in the last month. This column requires observability configured.All
Monitoring featuresThe number of monitoring features that are enabled in the agent. See The three stages of GenAIOps evaluation.Foundry
Entra IDThe Microsoft Entra Agent ID application and object ID associated with the agent. An agent identity is a special service principal in Microsoft Entra ID. It represents an identity that the agent identity blueprint created and is authorized to impersonate. See Agent identity concepts in Microsoft Foundry.Foundry

Permissions model

Foundry Control Plane automatically discovers agents that users have access to. Because Foundry Control Plane aggregates information across resources within the subscription, different users might see different agents listed on the Assets pane, depending on their access level on each resource. The following roles affect what you can see and do:
RoleScopeCapabilities
ReaderResource / resource group / subscriptionView agent inventory and traces
ContributorResource / resource group / subscriptionView and perform lifecycle operations (start, stop, block)
OwnerResource / resource group / subscriptionFull management, including permissions
These are minimum role requirements. Custom roles with equivalent permissions also work. The agents visible to you depend on your role assignments across the resources in the selected subscription.

Supported agent platforms

Foundry Control Plane automatically discovers agents in the following platforms:
Foundry agents, including prompt-based agents, workflows, and hosted agents

Foundry agents

Foundry Control Plane can help you manage agents across all your Foundry projects. When you create an agent or workflow in a Foundry project, the agent appears in the inventory. Foundry Control Plane lists all the agents across all the projects within a subscription. For each agent, the information includes: In this way, you can monitor versions consumed by your users and new versions under development. The following example shows multiple Foundry agents listed. Version 6 of the format-agent agent was published, but version 7 (latest) is still under development.
Screenshot of multiple Foundry agents listed in an inventory.
Foundry classic agents and Azure OpenAI assistants aren’t supported.

Azure SRE Agent

Azure SRE Agent helps you maintain the health and performance of your Azure resources through AI-powered monitoring and assistance. Agents continuously watch your resources for problems, provide troubleshooting help, and suggest remediation steps in a natural-language chat interface. Learn more about Azure SRE Agent. Foundry Control Plane discovers Azure SRE Agent resources in your subscription and displays them in the inventory.

Azure Logic Apps agent loop

Azure Logic Apps supports workflows that complete tasks by using agent loops with large language models (LLMs). An agent loop uses an iterative process to solve complex, multistep problems. Learn more about workflows with AI agents and models in Logic Apps. Foundry Control Plane discovers Logic Apps resources that contain agent loop workflows and lists them in the inventory.
Observability features, including traces and metrics, aren’t supported in Logic Apps agent loops.

Custom agents

For agentic platforms that Foundry Control Plane doesn’t support, you can manually register agents in a Foundry project to enable management. Registering custom agents that run in Azure compute services or other cloud environments can help you gain visibility into their operations and control their behavior. You can register a custom agent in Foundry Control Plane and develop the agent in the technology of your choice, for both platform and infrastructure solutions. Learn how to register an agent in Foundry Control Plane to enable management.

Observability of agents

Foundry Control Plane uses the Application Insights resources that host your agents to help you monitor and diagnose those agents. When such data is available, Foundry Control Plane can:
  • Compute runs and error rates.
  • Compute usage metrics, including token usage and cost.
  • Collect execution traces.
If you don’t see such information for your agent, you need to configure Application Insights. Ensure that you also have the appropriate permissions to view Application Insights data and cost metrics.
We strongly advise configuring Application Insights for each of the resources that host agents. For Foundry agents, Application Insights is configured per Foundry project. However, you can connect multiple Foundry projects to the same Application Insights resources to optimize those resources.

View traces

You can view traces and logs sent to Foundry. Traces are stored in Application Insights, and you can query them by using the Foundry portal or any other compatible tool. To view them:
  1. On the toolbar, select Operate.
  2. On the left pane, select Assets.
  3. Select the agent.
  4. Select the Traces tab. The tab shows one entry for each call made to the agent. Two columns contain IDs associated with the call: Trace ID and Conversation ID. Traces are stored in Application Insights and contain data to diagnose behavior. The Conversation ID column applies for Foundry agents. It contains the conversation associated with the trace. Conversations are stored in the Foundry service.
Screenshot of the traces associated with one agent.
  1. To see the details, select a value in the Trace ID column.
Screenshot of a single trace with LLM calls.
Custom agents require extra configuration to show details, including tools and LLM spans. Learn more at Instrument custom code agents.

Lifecycle operations

Foundry Control Plane helps organizations control agents to manage usage and infrastructure cost. Different agent platforms support different operations. The following table summarizes supported actions for each platform. A foundry agent’s support depends on the agent type and its publishing state.
PlatformAgent typePublishedSupported actionsNotes
FoundryPrompt

Workflow
NoNoneUnpublished agents don’t have dedicated deployments, and they use the project’s endpoint to receive requests. Their lifecycle is attached to the project’s lifecycle. To stop an unpublished prompt agent or workflow, you must delete it.
FoundryHostedNoStart/stopStopping a hosted agent stops the deployment associated with it. Any compute attached to it is deallocated.
FoundryPrompt

Workflow

Hosted
YesStart/stopStopping a published agent stops the deployment associated with it. It deallocates any compute attached.
Azure SRE AgentNot applicableNot applicableStart/stop
Azure Logic AppsNot applicableNot applicableStart/stopYou can stop an Azure Logic Apps agent loop by stopping the Logic Apps resource that hosts it. Stopping a Logic Apps resource stops all the workflows associated with it.
CustomNot applicableNot applicableBlock/unblockFoundry doesn’t have access to the underlying infrastructure where the agent runs, so start and stop operations aren’t available. However, Foundry can block incoming requests to the agent. Blocking a request prevents clients from consuming it.

Start and stop agents

Stopping an agent stops the infrastructure that’s associated with it and moves the agent to the Stopped state. Stopping an agent deprovisions its infrastructure and prevents new runs. Any workflows or resources connected to this agent can’t access it. This operation doesn’t terminate existing runs. To stop an agent:
  1. On the toolbar, select Operate.
  2. On the left pane, select Assets.
  3. Select the agent that you want to stop. The information pane appears.
  4. Select Update status, and then select Stop.
Screenshot of steps for stopping an agent.
  1. Confirm the operation.
The operation might take a few minutes to complete. Refresh the Assets pane to verify the updated status.
After you stop the agent, the Status value of the agent in Foundry is Stopped. To start the agent:
  1. Select Update status, and then select Start.
  2. Confirm the operation.

Block and unblock agents

For custom agents, Foundry doesn’t have access to the underlying infrastructure where the agent runs, so start and stop operations aren’t available. However, Foundry can block incoming requests to the agent. Blocking a request prevents clients from consuming it. This capability allows administrators to disable an agent if it misbehaves. To block incoming requests to your agent:
  1. On the toolbar, select Operate.
  2. On the left pane, select Assets.
  3. Select the agent that you want to block. The information pane appears.
  4. Select Update status, and then select Block.
Screenshot of steps for blocking incoming requests to an agent.
  1. Confirm the operation.
After you block the agent, the Status value of the agent in Foundry is Blocked. Agents in the Blocked state run in their associated infrastructure but can’t take incoming requests. Foundry blocks any attempt to communicate with the agent.
The operation might take a few minutes to complete. Refresh the Assets pane to verify the updated status.
To unblock the agent:
  1. Select Update status, and then select Unblock.
  2. Confirm the operation.

Handle unknown states

Under certain circumstances, agents can display the status Unknown. This status indicates that Foundry Control Plane can’t determine the agent’s state because the source platform is unavailable or the agent failed to report back. To troubleshoot an Unknown status:
  1. Verify that the source platform (for example, Azure Logic Apps or Azure SRE Agent) is operational.
  2. For custom agents, confirm the agent’s infrastructure is running and accessible.
  3. Check the agent’s Application Insights logs for error traces.
  4. If the status doesn’t resolve, try stopping and restarting the agent.

Troubleshooting

Observability data isn’t visible

If metrics like error rate, token usage, or cost don’t appear for an agent:
  1. Verify that Application Insights is configured for the resource that hosts the agent.
  2. Confirm you have the required permissions to view Application Insights data and cost metrics.
  3. Run the agent after you configure Application Insights. Metrics and traces are collected only for runs that occur after configuration. Past runs aren’t retroactively captured.
  4. Wait up to 15 minutes for data to propagate after the first post-configuration run.

Agent doesn’t appear in inventory

If an expected agent doesn’t appear in the Assets pane:
  1. Confirm the agent is in a supported platform.
  2. Verify you have RBAC permissions on the resource that hosts the agent.
  3. Check that the agent is within the currently selected subscription.
  4. For custom agents, verify the agent is registered in a Foundry project.