Migrate website configuration

Power Pages website development involves several configurations and customizations to achieve a desired experience for website end users.

After you have completed development or configuration of your website instance, you might want to migrate your latest website configuration from development to testing or the production environments.

Migration involves exporting the existing configuration from the source Microsoft Dataverse environment, and then importing it into the target Dataverse environment.

Prepare the target environment

You will need to prepare the target environment if you are using the standard data model. An environment using the enhanced data model will not require these steps and you can proceed to transferring the website configuration.

Note

  • Preparing the target environment is a one-time process. You will need to provision a new website in order to install the managed Power Pages solutions on Dataverse as well as configure the Power Pages web application. The process also installs default website metadata which will be replaced with the website metadata from your source environment.
  • Ensure that the target environment's maximum attachment size is set to the same or greater size as your source environment.
  • The maximum size of files is determined by the Maximum file size setting in the system settings email tab in the environment system settings dialog box.
  • Note the difference between developer, trial, and production websites and developer, trial, sandbox, and production environments.
  • You can migrate a trial, developer, production website to another trial, developer, or production website on the same or another environment. Note that a production website will need to be provisioned on a sandbox or production environment.
  1. Provision a new website in your target environment. Use the same website template as you provisioned on your source environment. For example, if you provisioned a site using the Dynamics 365 Customer Self-Service template on your source environment, provision the site using the Dynamics 365 Customer Self-Service template on your target environment.

  2. On the target environment, using the Portal Management app, delete the newly created website record. This will remove the default website configuration data from the target environment.

    Delete website record.

  3. On the target environment, in Power Apps, delete the portal app. This will remove the website currently configured to render the default site.

    Note

    Do not delete the Portal Management app!

    Delete portal app.

Transfer the website configuration to target environment

Transfer the site metadata from the source environment using the Power Platform CLI, the Configuration Migration Tool, or using solutions.

Reactivating site on target environment

Once the website has been transferred to the target environment, you will need to reactivate the website.

  1. On the target environment, on the Power Pages home screen, select Inactive sites, you should see the website you migrated to the environment.

  2. Select Reactivate.

    Reactivate website.

  3. You can specify the Reactivated website name and Create a web address or leave default values.

  4. Select Done.

  5. The website updates from the source environment should be reflected in this new target environment. Going forward, you should be able to transfer configuration from your source to target environments by transferring the website configuration data.

Note

A website appearing in the Inactive sites list on the Power Pages home page will appear in the list of Active Websites in the Portal Management app.

Transfer website metadata

If your website is configured using the enhanced data model you can transfer the website configuration using Power Platform solutions. For more information, go to Using solutions with Power Pages.

Note

Make sure the target environment is also has the enhanced data model enabled.

Create new website using migrated data

If the migration process is updating an existing website, the updates should now be visible in the target environment.

If the migration is for a new website, the migrated website will be listed in the Inactive sites tab on the Power Pages home page.

  1. On the target environment, on the Power Pages home screen, select Inactive sites, you should see the website you migrated to the environment.

  2. Select Reactivate.

    Reactivate website.

  3. You can specify the Reactivated website name and Create a web address or leave default values.

  4. Select Done.

Tenant-to-tenant migration

PowerPages doesn't support tenant-to-tenant migration. To migrate a website from one tenant to another, you must follow these steps:

  1. Reset your website in the source tenant.

  2. Provision a new website in an environment.

  3. Migrate website configurations and customizations using the steps explained in this article earlier.

See also