Manage solutions using PowerShell

The PowerShell cmdlets let you automate many of the monitoring, management, and quality assurance tasks in Power Platform.


The Power Apps administration module is used to manage users, databases, connectors, apps, flows, and permissions in Dataverse environments. More information: Use Microsoft.PowerApps.Administration.PowerShell


The connector module is used to connect to and retrieve environment or organization details from Dataverse and Dynamics 365 Customer Engagement (on-premises) deployments. More information: Use Microsoft.Xrm.Tooling.CrmConnector


The package deployment module is used to deploy packages. More information: Use Microsoft.Xrm.Tooling.PackageDeployment


The Power Apps checker module interacts with the Power Apps checker service providing the ability to run static analysis jobs and download the results. The module is a community supported tool that's available in the PowerShell Gallery. More information: Use Microsoft.PowerApps.Checker.PowerShell

The current restriction is that it does require Windows PowerShell in your project pipeline. If you're unable to meet this requirement, interacting directly with the Power Checker Web API might be a better approach.

There is a checker task in the Azure DevOps build tools include a checker task. More information about using that task in your build pipeline: Quality check.


Microsoft.Xrm.Data.PowerShell module is another community supported tool that lets you easily manage solutions using PowerShell as part of your custom automation. See sample code here. For example:
Export-CrmSolution "MySolution"

Export-CrmSolution -conn $conn -SolutionName "MySolution" -Managed -SolutionFilePath "C:\temp" -SolutionZipFileName ""

Import-CrmSolutionAsync -SolutionFilePath c:\temp\ -ActivateWorkflows -OverwriteUnManagedCustomizations -MaxWaitTimeInSeconds 600

See also

PowerShell modules