In order to test the ALM features, I was experimenting with Power Platform CLI for Power Pages. I have created a Power Pages site in Environment 1. Using PP CLI, I connected to the Environment 1 and downloaded the Power Pages site which I created. Then, connected to Environment 2 using CLI and uploaded the downloaded website from Environment 1. The upload succeeded. I listed the Power Pages site available in the environment and the new website showed up in the list displayed.
Now when I open the Power Pages home page, I could not find the new website which I uploaded. I checked the Portal Management MDA app, it is listed there, but I'm unable to launch or open the website.
Am I doing anything wrong here?
Hi @Anonymous ,
Glad to hear that it solved your problem. Are you trying to deploy the table configuration or the data within the table? You can package tables into a Power Platform solution in order to ensure they exist and are configured correctly in the target environment, but I don't believe it's supported to migrate data this way because that could cause personal data to be inadvertently loaded into a dev/test environment.
If you *must* migrate data between environments, you could use the Dataverse Web API to query the data from the source environment and then write it to the target environment.
References:
Dataverse Web API: Use the Microsoft Dataverse Web API (Dataverse) - Power Apps | Microsoft Learn
Adding components (i.e. tables) to solutions: https://learn.microsoft.com/en-us/power-apps/maker/data-platform/create-solution#add-solution-components
Hi @rcarrigan,
I followed the above steps and I was able to deploy the site to another environment. Thanks for providing the solution.
I have one more query regarding this. Can we deploy the Dataverse tables associated with the source website as well to the target environment? Is that possible currently?
Hi @Anonymous ,
I've had trouble with this before as well, so I feel your pain. I believe that your issue lies in the statement "I could not find the new website which I uploaded". When you are migrating a Power Pages site from one environment to another for the first time, you need to follow a very specific process:
1. Create the new site manually in the target environment using the same template used in the source environment.
2. Delete the newly-created site (trust me).
3. Delete the newly-created portal app (not portal management).
4. Upload the website contents.
5. Create a new website in the target environment with the "Use data from existing website record" box checked and your website name selected.
Here are the official MS docs: https://learn.microsoft.com/en-us/power-pages/admin/migrate-site-configuration?tabs=CLI#prepare-the-target-environment
Hope this helps!
Fubar
69
Super User 2025 Season 1
oliver.rodrigues
49
Most Valuable Professional
Jon Unzueta
43