web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Is there an option to ...
Power Apps
Answered

Is there an option to copy PowerApps environment via Powershell PowerApps administration cmdlet?

(1) ShareShare
ReportReport
Posted on by 9

Hi,

Is there any option to use Microsoft.PowerApps.Administration.PowerShell:
https://www.powershellgallery.com/packages/Microsoft.PowerApps.Administration.PowerShell/2.0.59

or other powershell cmdlet to perform a full copy of an environment?

I can do this manually in https://admin.powerplatform.microsoft.com/environments by clicking "Copy" button.
Capture.PNG


Categories:
I have the same question (0)
  • Verified answer
    iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

     Hi @crmflow 

     

    I don't think this is currently possible with the Administration PowerShell Module.

    Here is the list of commands available via the Module:

    CommandType Name Version Source
    Function Add-AdminPowerAppsSyncUser 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Add-AllowedConsentPlans 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Add-ConnectorToBusinessDataGroup 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Add-CustomConnectorToPolicy 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Add-PowerAppsAccount 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Clear-AdminPowerAppApisToBypassConsent 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Clear-AdminPowerAppAsFeatured 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Clear-AdminPowerAppAsHero 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Disable-AdminFlow 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Enable-AdminFlow 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Get-AdminDeletedPowerAppsList 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Get-AdminDlpPolicy 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Get-AdminFlow 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Get-AdminFlowOwnerRole 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Get-AdminFlowUserDetails 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Get-AdminPowerApp 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Get-AdminPowerAppCdsAdditionalNotificationEmails 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Get-AdminPowerAppCdsDatabaseCurrencies 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Get-AdminPowerAppCdsDatabaseLanguages 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Get-AdminPowerAppCdsDatabaseTemplates 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Get-AdminPowerAppConnection 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Get-AdminPowerAppConnectionReferences 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Get-AdminPowerAppConnectionRoleAssignment 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Get-AdminPowerAppConnector 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Get-AdminPowerAppConnectorRoleAssignment 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Get-AdminPowerAppEnvironment 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Get-AdminPowerAppEnvironmentLocations 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Get-AdminPowerAppEnvironmentRoleAssignment 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Get-AdminPowerAppLicenses 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Get-AdminPowerAppRoleAssignment 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Get-AdminPowerAppSoftDeletedEnvironment 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Get-AdminPowerAppsUserDetails 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Get-AdminRecoverDeletedPowerApp 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Get-AllowedConsentPlans 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Get-DlpPolicy 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Get-JwtToken 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Get-TenantDetailsFromGraph 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Get-TenantSettings 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Get-UsersOrGroupsFromGraph 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function InvokeApi 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function InvokeApiNoParseContent 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function New-AdminDlpPolicy 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function New-AdminPowerAppCdsDatabase 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function New-AdminPowerAppEnvironment 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function New-DlpPolicy 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Recover-AdminPowerAppEnvironment 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Remove-AdminDlpPolicy 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Remove-AdminFlow 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Remove-AdminFlowApprovals 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Remove-AdminFlowOwnerRole 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Remove-AdminFlowUserDetails 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Remove-AdminPowerApp 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Remove-AdminPowerAppConnection 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Remove-AdminPowerAppConnectionRoleAssignment 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Remove-AdminPowerAppConnector 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Remove-AdminPowerAppConnectorRoleAssignment 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Remove-AdminPowerAppEnvironment 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Remove-AdminPowerAppEnvironmentRoleAssignment 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Remove-AdminPowerAppRoleAssignment 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Remove-AllowedConsentPlans 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Remove-ConnectorFromBusinessDataGroup 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Remove-CustomConnectorFromPolicy 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Remove-DlpPolicy 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Remove-LegacyCDSDatabase 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Remove-PowerAppsAccount 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function ReplaceMacro 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Select-CurrentEnvironment 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Set-AdminDlpPolicy 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Set-AdminFlowOwnerRole 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Set-AdminPowerAppApisToBypassConsent 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Set-AdminPowerAppAsFeatured 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Set-AdminPowerAppAsHero 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Set-AdminPowerAppCdsAdditionalNotificationEmails 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Set-AdminPowerAppConnectionRoleAssignment 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Set-AdminPowerAppConnectorRoleAssignment 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Set-AdminPowerAppEnvironmentDisplayName 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Set-AdminPowerAppEnvironmentRoleAssignment 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Set-AdminPowerAppOwner 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Set-AdminPowerAppRoleAssignment 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Set-DlpPolicy 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Set-TenantSettings 2.0.59 Microsoft.PowerApps.Administration.PowerShell
    Function Test-PowerAppsAccount 2.0.59 Microsoft.PowerApps.Administration.PowerShell

     

    Kind Regards,

    ManCat

  • Verified answer
    alrezac Profile Picture
    Microsoft Employee on at

    Hi,

     

    You can also check out our official documentation on PowerShell admin cmdlet's via the link below; Looking through I don't see any actions that would allow you do copy environments so it appears to be unsupported.

     

    https://docs.microsoft.com/en-us/power-platform/admin/powerapps-powershell

     

    Regards,

     

    Alex

     

    -------

     

    Community Support Team _ Alex Rezac
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • crmflow Profile Picture
    9 on at

    Oh, ok, thank you guys for replies!

    I did not see such command either 😞 that's sad, but okay...

     

    Microsoft should consider this option

  • ŻŻ Profile Picture
    10 on at

    Microsoft seems to be working on new PowerShell cmdlet for administering PowerPlatform.

    It is in preview right now.

    https://docs.microsoft.com/en-us/power-platform/admin/powerapps-powershell

    Maybe someday we will get such functionality, it would be very useful.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 428

#2
Haque Profile Picture

Haque 338

#3
timl Profile Picture

timl 333 Super User 2026 Season 1

Last 30 days Overall leaderboard