Skip to content

Sandbox setup overview

In Azure Logic Apps Automation, a sandbox is an environment where a Managed Agent can run code.

Review the requirements and available options for default sandboxes and prebuilt sandboxes. The options available in your environment might differ.

  • A Microsoft work or school account with access to the target environment.

    Confirm account and subscription requirements with your environment administrator.

  • Access to the Azure Logic Apps Automation portal.

  • Access to your automation environment.

  • To create a prebuilt sandbox configuration, confirm the required environment access with your administrator.

    If you don’t have environment access, contact your environment administrator so they can validate and assign the required permissions.

  • To use a sandbox in a workflow:

  1. In the Azure Logic Apps Automation portal, open your environment, app, and workflow.

  2. On the workflow designer, select the Managed Agent action.

  3. In the agent’s Harness settings, select GHCP (GitHub Copilot) as the harness type, if offered.

  4. Leave the sandbox configuration unselected to use the default base image, as described in the selector.

Identify the code and repositories your agent needs, then confirm the supported execution, network, and authentication options with your administrator before selecting a configuration.

  1. In the Azure Logic Apps Automation portal, open your environment.

  2. On the environment sidebar, select Sandboxes, and then select Create.

  3. In the New sandbox configuration dialog, enter a unique name using lowercase letters, numbers, and hyphens; default is reserved.

  4. Choose a resource tier and add at least one absolute repository URL starting with http:// or https://. You can also specify a branch for each repository.

  5. Choose an available repository authentication method: Managed Identity, PAT, or OAuth. Make sure the identity or account has access to each repository.

    For PAT authentication, enter a token in the Personal Access Token field for each repository. Treat tokens as secrets and follow your organization’s token policy.

    For a public GitHub repository, GitHub OAuth might provide the required read access without GitHub App installation.

    For private repositories or authenticated access, select OAuth. Install or configure the Logic Apps Automation GitHub App for the account that owns the repository, and grant access to the repository. An organization administrator might need to approve the installation. Return to the sandbox configuration, select Connect GitHub, and complete sign-in and consent.

    For Azure DevOps OAuth, select Connect Azure DevOps, allow the sign-in popup, and complete sign-in and consent.

    Repository OAuth configures repository access for the sandbox. It doesn’t automatically configure GitHub Copilot model calls or GitHub connector operations. Complete those setup flows separately.

    A connected indicator doesn’t by itself prove access to a particular repository.

  6. Select Create, then review the configuration status. Select a configuration that shows Ready when you attach it to the agent.

  1. In your environment, open your app and your workflow.

  2. On the workflow designer, select the Managed Agent action.

  3. In the agent’s Harness settings, select GHCP (GitHub Copilot) as the harness type, if offered.

  4. Select the ready sandbox configuration. Verify the agent’s model selection or model connection and other required settings before running the workflow.

How Azure Logic Apps Automation places skills for GitHub Copilot

Section titled “How Azure Logic Apps Automation places skills for GitHub Copilot”

In Repository Skills, select Add skill, choose a repository from the sandbox configuration, and enter the relative path of a skills folder containing SKILL.md. Then select Add. Confirm that the folder exists in the repository. For general GitHub Copilot CLI guidance, see Add skills.

Input file requirements and behavior aren’t currently documented here. Before passing a file, confirm supported formats and limits, and check that its contents can be shared with the agent.

Output file behavior and formats aren’t currently documented here. Confirm where to retrieve outputs and how to consume them before depending on them in a workflow.

On the environment’s Sandboxes page, select a configuration to review its state, creation time, resource tier, repositories, authentication types, and any build error.

If your current access allows sandbox management, you can perform the following actions. Available controls can vary by user and configuration.

ActionResult
EditSave your changes and review the configuration status. If a build starts, wait for Ready before attaching it. You might need to re-enter PATs for PAT-authenticated repositories.
RebuildStart a new build using the configuration. Re-enter the token for each PAT-authenticated repository when prompted.
DeleteReview the effects before deleting a configuration.
ProblemTry
The agent action doesn’t show the agent harness tab.Make sure you selected a Managed Agent, not a different action.
A sandbox configuration reports an errorSelect the configuration and review the error details.
A configuration doesn’t appear on the Managed AgentReview the configuration status and confirm the required access.
An expected input or output file is missingReview the agent action details in run history.
A private GitHub repository can’t be cloned after OAuth sign-inConfigure the GitHub App installation for the account that owns the repository and grant the app access to that repository.
A repository skill isn’t availableReview the sandbox configuration and confirm the requirements for using repository skills.