Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Application lifecycle management (ALM) is the set of processes, people, and tools that govern an agent's lifecycle. It starts with the initial idea and requirements gathering and continues through development, testing, deployment, and ongoing maintenance until the agent is retired. A clear ALM strategy gives you a predictable, repeatable way to deliver and update agents.
Agents change more often than traditional apps. Instructions, knowledge, tools, skills, and the underlying AI model can all change behavior. Treat each of these changes as a release: make it in development, prove it with evaluations, and promote the same tested version to production.
What are the benefits of ALM?
Healthy ALM practices deliver these benefits:
- Reliable releases: Reduce the risk of errors and keep deployments consistent.
- Governance and compliance: Enforce organizational policies, security standards, and approval steps.
- Evidence of quality: Keep evaluation results with each release so you can show how an agent was tested before it reached users.
- Scalability and reuse: Grow solutions without reinventing processes.
- Quality at speed: Balance rapid delivery with high-quality standards.
- Business continuity: Minimize downtime and disruption during updates.
- Team collaboration: Improve coordination across makers, developers, testers, and operations.
Apply core ALM best practices
Use these core ALM practices to manage Copilot Studio agents from development through production:
- Define an environment strategy. Let makers build in secure, low-audience environments, and then follow vetted guidelines to deploy agents to test and production environments.
- Use solutions as containers. Solutions transport agents and their dependencies across environments.
- Separate configuration from the agent. Use environment variables for environment-specific settings, and connection references for environment-specific connections and credentials.
- Automate deployments. Use continuous integration and continuous delivery (CI/CD) options for both low-code and pro-code teams, such as pipelines in Power Platform, Azure DevOps, or GitHub Actions.
- Use source control. Track changes to agent and solution definitions in Git.
Learn more about application lifecycle management (ALM) with Microsoft Power Platform.
Choose an ALM approach for your agent
Copilot Studio now supports more than one way to move an agent through its lifecycle. Choose the approach that matches the agent type, the team that builds it, and the level of isolation you need. You can combine approaches.
| Approach | How it works | Best for |
|---|---|---|
| Solutions across environments | Package the agent and its dependencies in a solution. Export it as managed and import it into test and production environments, manually or with pipelines. | Most agents on the standard, Microsoft Copilot, and Customer Conversation harnesses. Teams that need separate admins, data policies, or test data per stage. |
| Code-first agent definitions | Clone the agent to local files by using the Copilot Studio extension for Visual Studio Code, or work with local definitions by using the Copilot Studio CLI (preview). Review changes in Git, and deploy approved source to named targets. | Pro-code teams that want pull requests, code review, and repeatable deployments alongside the Copilot Studio authoring experience. |
Configure and secure environments
A healthy ALM strategy includes at least three environments: development, test, and production. Changes flow in one direction. A maker changes the agent in development and promotes it to test. If testers find issues, the maker fixes them in development and promotes the agent again. When testing passes, the same version moves to production.
- Set the environment type. Configure the production environment as a production type environment. Configure development and test as sandbox type environments.
- Restrict access. Apply a Microsoft Entra security group to each environment so only its members can access it.
- Use Managed Environments. Apply Managed Environments to test and production to enforce governance controls, such as blocking unmanaged customizations in downstream environments.
- Control knowledge sources. In the Power Platform admin center, decide which knowledge sources makers can add, such as local file uploads, SharePoint and OneDrive, or public websites. Apply the same settings consistently across stages so an agent that passes testing doesn't fail in production because of a blocked source.
- Add environments only when you need them. Mature teams sometimes add an early release environment to catch platform changes before they reach production, or a production-aligned environment for urgent fixes. Start with three environments, and add more when a real problem requires them.
Align your environment strategy with your organization's governance zones. Learn more about security and governance considerations.
Follow the ALM golden rules
Use these rules to keep your lifecycle consistent and reliable:
- Don't customize outside of a development environment.
- Always work in the context of solutions. Set a custom solution as your preferred solution so new agents and components land in it automatically.
- Use a custom publisher and prefix.
- Create separate solutions only if you need to deploy components independently.
- Use environment variables for settings and secrets that change across environments. For secrets, use the secret data type to retrieve values from Azure Key Vault.
- Export and deploy solutions as managed, unless you're setting up a development environment.
- Promote the same tested artifact through every stage. Don't rebuild or edit the agent between test and production.
- Automate source control and deployments as your agents grow in importance.
Plan for harness-specific lifecycle considerations
The harness affects how you build, test, and update an agent. Plan your ALM process for the harness you choose.
- Managed agents on the Microsoft Copilot harness are read-only. If a managed solution doesn't allow customizations, the agent opens as read-only in the target environment. To change it, update the agent in the environment where you created it, and then import the updated solution. Learn more in Create and manage solutions in Copilot Studio.
- Upgrading to the Microsoft Copilot harness creates a new agent. The upgrade creates a copy of a standard harness agent. Treat the upgraded agent as a new release: add it to a solution, evaluate it against the original agent's core scenarios, and promote it through your normal pipeline. Learn more in Migrate an agent to the Microsoft Copilot harness.
- Model changes are releases. When Copilot Studio upgrades an agent to a new default model, you can keep the agent on its current model for up to 30 days. Use that window to run your evaluations against the new model in development and test before you move production. Learn more in Manage the AI model lifecycle for Copilot Studio agents.
- Reusable components differ by harness. Agents on the standard harness reuse topics, knowledge, actions, and entities through component collections. Agents on the Microsoft Copilot harness reuse skills, workflows, MCP servers, and connected agents. Plan which team owns each shared component and how you version it.
Review components that need post-deployment configuration
Some Copilot Studio settings aren't solution-aware. They don't move with the solution and need configuration in each downstream environment. Include these steps in your deployment checklist or automate them:
- Azure Application Insights settings
- Manual authentication settings
- Direct Line and web channel security settings
- Deployed channels, including Microsoft Teams and Microsoft Copilot
- Sharing with other makers or with end users
- Connections that connection references bind to in the target environment
Also check these known limitations when you export and import agents:
- Topic-level and node-level comments aren't exported.
- The imported agent might be missing some elements, such as the agent icon and channel details.
- You can't export a solution that contains an agent with a period (.) in the name of any of its topics.
- If you add components, such as topics or flows, to an agent in Copilot Studio, add them to the agent's solution before you export. Use Add required objects to include dependencies.
- Import custom connectors before you import the connection references and the agent solution.
To tell agents apart across environments in Teams and Microsoft Copilot, use the channel display name suffix (preview). It appends an environment variable value to the agent's display name, for example Support Agent (TEST).
Learn more in Export and import agents using solutions.
Manage agent definitions in source control
Source control gives you a history of who changed what, a way to review changes before they reach a shared environment, and a known good version to roll back to. Copilot Studio supports source control at two levels.
Solution-level source control. Use Dataverse Git integration to connect a development environment's solutions to an Azure DevOps Git repository. This approach suits low-code teams that already work in solutions. Learn more in Overview of Git integration in Power Platform.
Agent definition source control. Work with the agent itself as files:
- Copilot Studio extension for Visual Studio Code: Clone an agent to a local folder, edit its YAML definition with IntelliSense and validation, and track the folder in Git. When you push changes from the extension, you save them directly to the cloud agent, so push only from a branch your team agreed to treat as current. Learn more in Clone your Microsoft Copilot Studio agent in Microsoft Visual Studio Code.
- Copilot Studio CLI (preview): Create a definition or bring an existing cloud agent into a local workspace, review changes as file differences in Git, and deploy approved source to named development, test, and production targets. Deploying updates the cloud draft, and publishing makes the changes available to users. Learn more in Develop Copilot Studio agents with the CLI.
Follow these practices when you keep agent definitions in Git:
- Agree on the source of truth. Decide when makers can still edit in Copilot Studio, and which version is authoritative. Pull cloud changes into the local workspace before you start new work.
- Keep private state out of the repository. Exclude credentials, token caches, machine-specific registration files, private conversation transcripts, and personal configuration. Review connection reference definitions for environment-specific data before you share them.
- Review behavior, not only syntax. In pull requests, review changes to instructions, tools, knowledge, permissions, and evaluation cases. Attach evaluation results as review evidence.
- Plan for automation identity. Service principal deployment from CI/CD workflows isn't yet available for the CLI. Use pipelines in Power Platform or Power Platform Build Tools when you need unattended deployments today.
Learn more in Collaborate on agent definitions through source control.
Create reusable component collections
A component collection is a set of reusable components for agents on the standard harness, such as topics, knowledge, actions, and entities. Share a collection among multiple agents in an environment, and use a solution to export and import it across environments. By using component collections, multiple teams can build parts of an agent in different environments with independent release cadences.
In this example, four environments work together:
- IT and HR development: Maintain the IT collection and HR collection, including topics, actions, and knowledge. Change the collections here and deploy them to downstream environments.
- Contoso development: Build the Contoso agent with its own topics, actions, and knowledge. Reference the IT and HR collections at the same versions as the IT and HR development environment.
- Contoso test: Deploy the Contoso agent and the same collection versions for validation before release.
- Contoso production: Deploy the Contoso agent with stable collection versions, such as IT collection v1.0 and HR collection v1.0.
Follow these practices:
- Reuse over duplication: Share collections across agents and environments.
- Version control: Track collection versions for consistency and rollback.
- Modular design: Keep components for each domain in their own collection.
- Independent release cadence: Update a collection without disrupting agents that use a previous version.
For agents on the Microsoft Copilot harness, apply the same principles to skills. Share a skill with specific people or your organization instead of copying it into each agent. Recipients receive updates to shared skills, so review updates before they reach production agents.
Select ALM automation tools for deploying agents
Copilot Studio supports several tools to automate agent deployment. Each tool targets a different audience.
| Feature or benefit | Pipelines in Power Platform | GitHub Actions for Power Platform | Azure DevOps | Copilot Studio CLI and MCP server (preview) |
|---|---|---|---|---|
| Best for | Organizations that want makers to deploy safely without ALM expertise | Developer and admin teams managing multiple environments | Enterprise teams that need full ALM control | Pro-code teams that author agents as local files or from AI coding tools |
| Key capabilities | Deploy from Copilot Studio or Power Apps. Centralized deployment history. Approvals and pre-deployment steps through pipeline extensions. Deploy as a service principal. | Import and export solutions. Deploy to downstream environments. Provision or deprovision environments. Run Solution Checker. | Source control through Azure Repos. CI/CD with Azure Pipelines and Power Platform Build Tools. Dataverse Git integration with Azure Repos. Back up, restore, copy, and reset environments. | Clone, edit, deploy, and publish agent definitions. Run evaluations. Create, test, deploy, and monitor agents and workflows from tools like Visual Studio Code and GitHub Copilot CLI. |
| Setup complexity | Low | Moderate (requires GitHub setup and scripts) | High (requires configuration and expertise) | Moderate (requires local tooling and Git) |
Learn more in Overview of pipelines in Power Platform.
Tip
To add custom steps to pipelines in Power Platform, such as automated tests or quality gates, use a custom pipelines host. You can't extend the platform host or personal pipelines.
Establish a testing strategy and quality gates
Test every change before it reaches production, including changes to instructions, knowledge, tools, skills, and the AI model. Build evaluations into your lifecycle so quality evidence travels with each release.
- Create a regression test set. Use Agent Evaluation in Copilot Studio to build test sets from a CSV file, AI-generated questions, or your own test cases. Choose test methods such as general quality, compare meaning, capability use, or custom classification. Rerun the same test set after each change and compare results. Learn more in Run evaluations and view results.
- Evaluate with a realistic identity. Each evaluation runs as a selected user profile, with that user's knowledge, tools, and connections. Use a test profile with the same access as your target users.
- Keep the evidence. Each evaluation run records the test set, user profile, date, and results. Results stay in Copilot Studio for 89 days, so export them and store them with the release record.
- Automate the gate. Agent evaluation is available through an API, so you can trigger evaluation runs from your deployment workflow. To block a deployment that doesn't meet a quality bar, use the Agent Review Pipeline or automate testing and deployment with pipelines in Power Platform by using Copilot Agent Kit.
- Plan for evaluation cost. Evaluations and AI-based review steps consume Copilot Credits. Estimate usage before you run large test suites or gate every deployment.
Learn more in Design a testing strategy for your agents.
Next step
Prepare to operate your solution at scale by reviewing how to track usage, maintain compliance, and ensure your environments have the capacity they need.
Related information
- Overview of application lifecycle management with Microsoft Power Platform
- Create and manage solutions in Copilot Studio
- Export and import agents using solutions
- Develop Copilot Studio agents with the CLI (preview)
- Migrate an agent to the Microsoft Copilot harness
- Recommendations for safe deployment practices