Partager via


Overview

With PowerShell cmdlets for app creators, administrators, and developers, you can automate many of the monitoring, management, and quality assurance tasks that are only possible manually today in Power Apps or the Power Platform admin center.

The following PowerShell modules and snapins are available.

Module Name Description More Information
Microsoft.Xrm.OnlineManagementAPI The online management API module is used to manage Dataverse environments. Get started using the Microsoft.Xrm.OnlineManagementAPI module
Microsoft.PowerApps.Administration.PowerShell The Power Apps administration module is used to manage users, databases, connectors, apps, flows, and permissions in Dataverse environments. PowerShell support for Power Apps (preview)

Get started using the Microsoft.PowerApps.Administration.PowerShell cmdlets
Microsoft.Xrm.Tooling.CrmConnector The connector module is used to connect to and retrieve environment or organization details from Dataverse and Dynamics 365 Customer Engagement (on-premises) deployments. Microsoft.Xrm.Tooling.CrmConnector.PowerShell Module
Microsoft.Xrm.Tooling.PackageDeployment The package deployment module is used to deploy packages. Get started using the Microsoft.Xrm.Tooling.PackageDeployment cmdlets
Microsoft.PowerApps.Checker.PowerShell The Power Apps checker module interacts with the Power Apps checker service providing the ability to run static analysis jobs and download the results. Get started using the Microsoft.PowerApps.Checker.PowerShell cmdlets
Microsoft.PowerApps.PowerShell The Power Apps maker module lets app makers manage connectors, apps, flows, and permissions in Dataverse environments. Get started using the Microsoft.PowerApps.PowerShell

Establish your credentials and connection

To establish your credentials, run the following commands, where $user is your user account (UNC) and $password is your Office 365 tenant password.

$user = "admin@sfa.contoso.onmicrosoft.com"
$password = "password"
$cred = New-Object System.Management.Automation.PSCredential ($user, (ConvertTo-SecureString $password –ASPlainText –Force))

To save your connection ApiUrl, run the following cmdlet, where $connectionhost is the root service url of your environment region. More information: Service URL

$connectionhost = "https://admin.services.crm.dynamics.com"

PowerShell cmndlet Help

You can get help on any cmdlet. Get-Help cmdletname

For example, get help on a Power Apps administration cmdlet. Get-Help Add-AdminPowerAppsSyncUser

Service URL

The service URL defines the endpoint address for accessing the Power Platform.

The following table lists the service URLs for worldwide Microsoft 365 data centers.

Location Service URL
North America https://admin.services.crm.dynamics.com
North America 2 https://admin.services.crm9.dynamics.com
Europe, Middle East and Africa (EMEA) https://admin.services.crm4.dynamics.com
Asia Pacific (APAC) https://admin.services.crm5.dynamics.com
Oceania https://admin.services.crm6.dynamics.com
Japan (JPN) https://admin.services.crm7.dynamics.com
South America https://admin.services.crm2.dynamics.com
India (IND) https://admin.services.crm8.dynamics.com
Canada https://admin.services.crm3.dynamics.com
United Kingdom (UK) https://admin.services.crm11.dynamics.com
France https://admin.services.crm12.dynamics.com