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.
Solved! Go to Solution.
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! |
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.
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! |
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.
Oh, ok, thank you guys for replies!
I did not see such command either 😞 that's sad, but okay...
Microsoft should consider this option
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.
Check out new user group experience and if you are a leader please create your group
Did you miss the call?? Check out the Power Apps Community Call here!
See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.
User | Count |
---|---|
274 | |
229 | |
79 | |
37 | |
37 |
User | Count |
---|---|
346 | |
229 | |
124 | |
70 | |
55 |