Most Copilot Studio agents start life as an experiment in someone's default environment. That is fine for a proof of concept. It becomes a problem the day the business says "great, can we have it in production by Friday?" and nobody can say exactly what the agent is made of.

ALM for agents isn't a new discipline. It's Power Platform ALM with a few agent-specific gaps, and the earlier you treat an agent as a solution component, the easier the first promotion.

Every agent already lives in a solution

Copilot Studio creates every agent inside a Power Platform solution. If you don't choose one, it goes into a default solution, which you can't export or promote in any controlled way. The fix takes thirty seconds: create a custom solution with your organisation's publisher and prefix, then use Set preferred solution in the solution explorer so new agents land there by default. Microsoft's solutions overview for Copilot Studio walks through it.

My rule is simple: no agent gets built, even as a demo, until a preferred solution is set. Moving an agent into a solution later is possible, but you will spend an afternoon chasing missing dependencies.

Dev, test and production, with real boundaries

Microsoft's ALM guidance for Copilot Studio recommends at least three environments: development, test and production. Production should be a production-type environment and the others sandboxes, each secured with an Entra security group. Its golden rules are worth repeating word for word:

In regulated industries that last rule is the one auditors care about. If someone can edit the instructions of a production agent directly, you no longer have a reliable record of what changed and who approved it. I've written before about running only managed solutions in production; agents are no exception.

If someone can edit a production agent directly, you no longer have a reliable record of what changed and who approved it.

Pipelines: pick the one your team can actually run

The ALM guidance lays out three routes. Power Platform pipelines are quick to set up and suit maker-led teams. GitHub Actions for Power Platform and Azure DevOps with the Power Platform Build Tools give pro-dev teams source control, solution checker and environment automation, at higher setup cost. Native Git integration for Dataverse is also available; Microsoft recommends using it in development environments only, and building managed artifacts for downstream deployment.

For most enterprise agent teams I'd start with Power Platform pipelines, opened from Pipelines in the solution explorer. You get a deployment record and approvals without YAML. Move to Azure DevOps or GitHub when you need branching, pull request review of agent changes, or automated tests as a deployment gate. Microsoft documents a pattern that uses the Copilot Agent Kit to run automated tests and pause a pipeline deployment if they fail.

Environment variables and connection references

Anything that differs between environments belongs in an environment variable: SharePoint site URLs, API base addresses, mailbox names, feature flags. Every connector the agent or its flows use should go through a connection reference, so the deployment can bind it to a test or production connection rather than the maker's own.

When you add flows or environment variables to an agent's solution, use Advanced > Add required objects so the dependencies come along. If you use custom connectors, the export and import guidance is explicit: import the custom connectors first, then the connection reference with the agent solution.

What doesn't move cleanly

This is where first deployments go wrong. According to Microsoft's documentation, these items aren't solution-aware and need manual steps in each target environment:

The import guidance adds a few more: the agent icon and channel details can arrive empty, topic and node comments aren't exported, and you must publish the imported agent before it can be shared. It also warns against removing or editing agent components directly in the solution; make topic changes in Copilot Studio, or export and import can fail.

Write a one-page post-deployment runbook for each agent: authentication settings, channels, Application Insights connection, sharing groups and the publish step. Attach it to every release. It turns "it worked in test" into a checklist someone can sign off.

A note on scope: Copilot Studio now offers more than one harness, and the GitHub Copilot harness lists ALM among its supported capabilities. The specifics above come from documentation for agents on the standard harness, so check the current docs if you build on the newer one.

Getting started this week

If you have production agents that were never in a custom solution, don't fix everything at once. Take the most critical one, move it into a solution in development with its dependencies, and do one dry-run deployment to a fresh test environment. Whatever breaks is your runbook.

Start with one agent, one solution and one dry run before the next release goes out.