web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : /WQ9xQ5ABUKPYHpvvDIMu7
Power Pages - General Discussions
Answered

Power Platform CLI for Power Pages Issue

Like (1) ShareShare
ReportReport
Posted on 28 Mar 2023 08:58:35 by

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?

Categories:
I have the same question (0)
  • rcarrigan Profile Picture
    67 on 20 Apr 2023 at 20:40:57
    Re: Power Platform CLI for Power Pages Issue

    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

  • Community Power Platform Member Profile Picture
    on 03 Apr 2023 at 07:51:47
    Re: Power Platform CLI for Power Pages Issue

    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?

     

  • Verified answer
    rcarrigan Profile Picture
    67 on 28 Mar 2023 at 21:36:43
    Re: Power Platform CLI for Power Pages Issue

    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!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#2
Lucas001 Profile Picture

Lucas001 48 Super User 2025 Season 2

#3
KevinGador Profile Picture

KevinGador 44 Super User 2025 Season 2

Loading complete