cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

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

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


2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Super User
Super User

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

 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


@iAm_ManCat

Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you!


Thanks!
You and everyone else in the community make it the awesome and welcoming place it is, keep your questions coming and make sure to 'like' anything that makes you 'Appy
Sancho Harker, MVP


View solution in original post

Highlighted
Microsoft
Microsoft

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

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.

View solution in original post

4 REPLIES 4
Highlighted
Super User
Super User

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

 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


@iAm_ManCat

Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you!


Thanks!
You and everyone else in the community make it the awesome and welcoming place it is, keep your questions coming and make sure to 'like' anything that makes you 'Appy
Sancho Harker, MVP


View solution in original post

Highlighted
Microsoft
Microsoft

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

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.

View solution in original post

Highlighted
Frequent Visitor

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

Oh, ok, thank you guys for replies!

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

 

Microsoft should consider this option

Highlighted
New Member

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

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.

Helpful resources

Announcements
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (8,066)