Managed Agent
Overview
Section titled “Overview”Choose Managed agent when your workflow task needs code, repository, or file-oriented work through a managed harness and sandbox-capable setup.
Setup requirements
Section titled “Setup requirements”Before you run a Managed agent action:
- Have an app and workflow in the target Azure Logic Apps Automation environment.
- Have access to a Microsoft-managed coding model or the credentials for your own model connection.
- Configure sandbox and repository settings offered by your environment.
- Provide any required input files and skills configuration.
For current setup guidance, see Sandbox setup overview.
Choose model access
Section titled “Choose model access”- Add an agent action and select Managed agent.
- If Choose an AI model opens, choose one of these paths:
- Select a Microsoft-managed model. You don’t need to create a model connection.
- Select Use your own model connection, then create or select a connection.
- For your own model connection, select an available provider:
- Sign in with GitHub uses GitHub OAuth and the signed-in account’s GitHub Copilot access.
- API Key uses an OpenAI-compatible chat completions endpoint and API key.
Completing GitHub OAuth for model calls doesn’t automatically configure repository cloning or GitHub connector operations. Complete those setup flows separately. For more information, see Sandbox setup overview and GitHub connector.
Build path
Section titled “Build path”Use this sequence:
- Add an agent action and select Managed agent.
- Select the model or model connection.
- Configure System message and User message for the exact task.
- Review Harness settings, including execution environment, sandbox, and repository skills.
- Add only the tools needed for the task.
- Save and run, then inspect run details.
Output and controls
Section titled “Output and controls”Managed agent outputs can feed later deterministic workflow actions. Use run settings and run history to control and audit behavior before broad rollout.
Troubleshoot problems
Section titled “Troubleshoot problems”| Problem | Try |
|---|---|
| GitHub sign-in isn’t offered | Confirm that you selected Managed agent, then select Use your own model connection in the model picker. |
| GitHub sign-in succeeds but model calls fail | Confirm that the signed-in GitHub account has GitHub Copilot access. Delete and recreate the model connection to use a different account. |
| A sandbox configuration isn’t available | Confirm that the configuration has the Ready status. |
| A repository can’t be cloned | Check the repository URL and branch, then review the repository authentication configured on the sandbox. |