Forum Discussion
billylo888
Sep 07, 2023Copper Contributor
How can I copy Power App Website from Production to Development environment?
I have a Power App portal-type website in a Production environment and would like to duplicate it to another Development environment so that I can use it to explore, try different things, and develop. I made many attempts but still failed.
1. CLI download and upload
I downloaded the production source code using CLI and uploaded it to a Dev environment without modifying anything
auth create -u <env>
upload -p <the production source code>
Result : Website was not visible in Power Platform Admin Center under the Dev environment
I downloaded the production source code using CLI upload it to a Dev environment and modified the app name
Result : Website was not visible in Power Platform Admin Center under the Dev environment
2. Replace newly created app with Production source code
I downloaded the production source code using CLI and uploaded it to a Dev environment to replace the newly created website by modifying the website Id of the production source code to the newly created one. I also deleted the .crm3.dynamics.com-manifest.yml file to make sure it recreated the records
Result : Website was replaced with production code but it couldn’t access the resources properly and failed to display any data
3. Copy the environment to Sandbox
I copied the production environment to the newly created Sandbox environment using the copy feature in "Power Platform Admin Center".
Result : Website was not visible in Power Platform Admin Center under the Sandbox environment after a successful copy
I tried replacing a newly created website by uploading production source code with its website Id to it. I also deleted the .crm3.dynamics.com-manifest.yml file to make sure it recreated the records
Result : Website was replaced with production code but it couldn’t access the resources properly and failed to display any data
4. Restore the environment to Sandbox
I backup the production environment and then restore it to a newly created Sandbox environment using the backup and restore feature in "Power Platform Admin Center".
Result : Website was not visible in Power Platform Admin Center under the Sandbox environment after successful restore
I tried replacing a newly created website by uploading production source code with its website Id to it. I also deleted the crm3.dynamics.com-manifest.yml file folder to make sure it recreate the records
Result : Website was replaced with production code but it couldn’t access the resources properly and failed to display any data
Dose anyone know what the proper way is to duplicate a Power App website from one environment to another environment. Please help! Thank you so much!
No RepliesBe the first to reply