Skip to content

Managed Agent

Choose Managed agent when your workflow task needs code, repository, or file-oriented work through a managed harness and sandbox-capable setup.

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.

  1. Add an agent action and select Managed agent.
  2. 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.
  3. 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.

Use this sequence:

  1. Add an agent action and select Managed agent.
  2. Select the model or model connection.
  3. Configure System message and User message for the exact task.
  4. Review Harness settings, including execution environment, sandbox, and repository skills.
  5. Add only the tools needed for the task.
  6. Save and run, then inspect run details.

Managed agent outputs can feed later deterministic workflow actions. Use run settings and run history to control and audit behavior before broad rollout.

ProblemTry
GitHub sign-in isn’t offeredConfirm that you selected Managed agent, then select Use your own model connection in the model picker.
GitHub sign-in succeeds but model calls failConfirm 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 availableConfirm that the configuration has the Ready status.
A repository can’t be clonedCheck the repository URL and branch, then review the repository authentication configured on the sandbox.