Introduction
Moving data is important in any business or IT project, especially when switching to a new platform or improving existing systems. Microsoft's Power Platform has useful tools for making this process easier, and the Power Platform Build Tools are key to automating and simplifying it. This article looks into how these tools are used, with a focus on creating schema files using the Data Migration Utility.
Use Cases
- Automated Data Updates: Power Platform Build Tools automate the updating process, reducing the likelihood of errors associated with manual data entry. This ensures that accurate and up-to-date information is available to both internal stakeholders and customers.
- Deployment Processes: Automating this deployment process is essential to ensure consistency across multiple environments, such as development, testing, and production. Power Platform Build Tools facilitate the automation of the export and import of data. This use case highlights the efficiency gains and reliability achieved by incorporating automation.
- Reduced dependency: Power Platform Build Tools reduces dependency on Data Migration Utility or other softwares by automating at least two major operations, i.e, export and import of data.
There are many other use cases as well. For now, let's discuss a step-by-step process to implement this automation.
Step-by-Step Process to Automate Data Migration
Before we proceed we should understand 3 main operations in data migration in context of Power Platform. First is creation of schema, this step is performed manually using Data Migration Utility where we define tables, filters and solution from where data has to be exported. Second is Export from Source, this step can be automated using Power Platform Build Tools where data is exported from source environment. Third is Import to Target, in this step data is imported into target environment(s).
Step 1. Create Schema File Using Data Migration Utility
- Download the Configuration Migration Utility tool from this link: Download Nuget Tools.
- After successful installation, the folder structure will look as shown below:

- In ConfigurationMigration folder, open DataMigrationUtility.exe file. A new window will open, select Create Schema, and click on Continue as shown below.

- Log in window will open, select default settings as shown below and enter your environment's username and password. Click login to proceed further.

- Now select source environment from where schema file has to be generated as shown below and click login.

- In window shown below, first select the solution which contains the entities for which data has to be exported.Second step is to add the entities for schema creation. In screenshot shown below, I have clicked on 'Add All', it will add all the entities part of selected solution. Now once the entities are added click on save and export. A pop-up wil appear asking for file name and extension set to xml.

- Once the schema file is saved, a new pop-up will appear as shown below. Select No, as we will perform export and import from azure pipelines.






Join the conversation! Your thoughts help the community grow.