Get started using the Power Apps admin module
The Power Apps admin (Microsoft.PowerApps.Administration.PowerShell) PowerShell module is used to administer apps and environments in the Power Platform admin center.
This module works with Microsoft Dataverse.
You can install this module directly from the PowerShell Gallery.
- Start a PowerShell session.
- Enter the following cmdlet.
Install-Module -Name Microsoft.PowerApps.Administration.PowerShell <current version>
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 = "email@example.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"
You can get help on any cmdlet.
For example, get help on the Backup-PowerAppEnvironment cmdlet