cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
crmflow
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
iAm_ManCat
Super User II
Super User II

 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

alrez
Community Support
Community Support

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
iAm_ManCat
Super User II
Super User II

 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

alrez
Community Support
Community Support

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

crmflow
Frequent Visitor

Oh, ok, thank you guys for replies!

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

 

Microsoft should consider this option

ŻŻ
New Member

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
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,536)