Automating data migration
As part of the cloud migration setup, Microsoft provides APIs to run data migration and data upgrades. They can be useful if you are planning a bulk migration or migrations for several customers. If you need more details, you can find them in the official Microsoft documentation at https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/administration/cloudmigrationapi/cloud-migration-api-overview.
However, here, we will skip their boring description and have more practice.
To make your life easier, Microsoft created a PowerShell script with a set of functions for cloud migration. It contains all that you need – the setup, migration, and data upgrade. You can download it from https://aka.ms/BCCloudMigrationAPI.
The link contains two files:
- CloudMigrationStatusText.psm1: This contains state-of-art graphic design functions.
- CloudMigrationScripts.ps1: This contains the main cloud migration functions: