Moving an environment to another Microsoft Entra tenant

When a Business Central online environment is moved to another Microsoft Entra tenant, any Continia solutions in the environment must be activated again. A tenant migration prepares the environment for the move, and the first activation after the move creates client credentials and a subscription.

The environment is assigned new client credentials because client IDs must be unique across Microsoft Entra tenants. A Continia client is registered to one tenant, and the same client ID can't be used in two tenants. The client credentials the environment brings with it belong to the source tenant, where they may still be used by other environments – so they can't be used in the target tenant.

This article describes what to do in the environment before the move (the source environment), what to do in the environment after the move (the target environment), and the steps specific to Continia Document Capture.

A tenant migration consists of the following steps.

StepWhereAction
1Source environmentPrepare Document Capture for the move.
2Source environmentStart the tenant migration. The Continia solutions are deactivated in the environment from then on.
3Business Central admin centerMove the environment to the target tenant.
4Target environmentActivate the Continia solutions. The first activation creates new client credentials.
5Target environmentComplete the setup of Document Capture.

Important

When you start the tenant migration, all Continia solutions stop working in the source environment – and they don't work again until you have activated them in the target environment. Prepare the solutions first, start the tenant migration just before the move, and plan the move and the activation in the same window.

Before you begin

Make sure that the following is in place before you start:

  • Continia Core 28.7 or later is installed in the environment if it runs Continia Core 28, or Continia Core 29.2 or later if it runs a newer version. In earlier versions, the Tenant migration action isn't available.
  • The environment is a production environment in Business Central online, and the Continia solutions are activated in it. A tenant migration can't be started in a sandbox environment.
  • You know the ID of the Microsoft Entra tenant the environment is moved to and the name the environment will have in that tenant.
  • Your user is assigned the CSC ADMIN or SUPER permission set in every company in the environment. The first activation in the target environment deletes the Continia activation of every company, so a permission set that is assigned for only one company isn't sufficient.
  • You have a PartnerZone login. The first activation in the target environment must be done by a partner.
  • If the environment uses Document Capture, you have planned for new email addresses. The addresses that Document Capture uses to receive documents belong to the Continia client, so they change when the environment gets new client credentials.

Note

Don't rename the source environment after you have started the tenant migration. If the environment is renamed without being moved, the Continia solutions stay deactivated – and Continia Support must reset the tenant migration.

To prepare Document Capture in the source environment

Do the following in each company that uses Document Capture, before you start the tenant migration:

  1. Search for and select Document Categories.
  2. Make sure that all pending documents are imported. If Documents for OCR isn't 0 (zero) for a category, wait until Continia Cloud OCR has processed the documents. Then, on the action bar, click Functions > Import Files.
  3. Continue when Documents for OCR and Documents for Import are 0 (zero) for every category.
  4. Search for and select Job Queue Entries.
  5. For each entry where Object ID to Run is 6085669 (CDC Run Doc. Importer from JQ), set Status to On Hold. This stops the job queues that import documents.

To start the tenant migration in the source environment

Start the tenant migration when Document Capture is prepared and you're ready to move the environment.

  1. Search for and select Continia Solution Management.
  2. On the action bar, click Advanced > Subscription Administration.
  3. On the Cloud Subscription Management page, click Advanced (Support Only) > Tenant migration.
  4. On the Tenant Migration page, click Start Tenant Migration.
  5. In the Start Tenant Migration guide, read the information on the Before you start page and click Next.
  6. On the Target tenant page, check that Current Tenant ID and Current Environment Name are the tenant and the name of the environment you're about to move.
  7. In the Target Tenant ID field, enter the ID of the Microsoft Entra tenant the environment is moved to.
  8. In the Target Environment Name field, enter the name the environment will have in the target tenant and click Next.
  9. Click Finish to start the tenant migration.

On the Tenant Migration page, the State field should show Started but Not Moved. The Continia solutions are deactivated in the environment, and the environment no longer sends updates to Continia Online.

Note

If the environment gets another name in the target tenant than the one you entered, the State field shows Tenant Mismatch after the move – instead of Moved but Not Activated. You activate the solutions in the same way.

To cancel a tenant migration

If the move is postponed or cancelled, you can cancel the tenant migration – as long as the environment hasn't been moved.

  1. Open the Tenant Migration page as described above.
  2. Click Cancel tenant migration.

The State field shows Not Started, and the Continia solutions work in the environment as before. Set the job queue entries you put on hold back to Ready.

To move the environment to the target tenant

The environment is moved between Microsoft Entra tenants in the Business Central admin center, as described in the Microsoft documentation. Continia doesn't move the environment.

Important

Only move the environment after the State field on the Tenant Migration page shows Started but Not Moved.

To activate the Continia solutions in the target environment

When the environment has been moved, users with setup permission see the notification Continia solutions in this environment have been migrated from another tenant and must be activated again.

  1. In the notification, click Open tenant migration. On the Tenant Migration page, the State field shows Moved but Not Activated.
  2. Click Open Solution Management.
  3. On the Continia Solution Management page, select the solution you want to activate and click Process > Manage Subscription. If the solution wasn't activated before the move, the action is Start Activation instead. For more information, see Managing Continia solutions (online).
  4. On the Activate After Tenant Migration page, check that Previous Tenant ID and Current Tenant ID are the source and the target tenant, then click OK. The activation creates client credentials for the target tenant, as the client ID from the source tenant can't be used in another tenant.
  5. In the activation guide, click Next. On the Partner information page, enter your PartnerZone user ID and password, then click Next. The activation type can't be selected because the first activation after a tenant migration must be done by a partner. The new client credentials are created at this point.
  6. On the Are you migrating from on-premises? page, leave the Migrate From On-Premises checkbox cleared. A move between tenants isn't a migration from on-premises.
  7. Follow the on-screen instructions and click Finish.
  8. For each other Continia solution in the company, click Process > Start Activation and complete the guide. These activations use the new client credentials, so the Activate After Tenant Migration page isn't shown again.
  9. In each other company that uses Continia solutions, open Continia Solution Management, select the solution, and click Activate Company.

Important

When you click OK on the Activate After Tenant Migration page, the Continia activation of every company in the environment is deleted, together with the client credentials from the source tenant. Your documents aren't deleted. An on-premises to cloud migration that wasn't finished in the environment is discarded. The deletion takes effect before the activation guide opens, so if you close the guide without finishing it, start the activation again.

To check that the activation succeeded, open the Cloud Subscription Management page. The Client ID field shows a new client ID and, on the Tenant Migration page, the State field shows Not Started. On the Continia Solution Management page, the Activated checkbox is selected for each solution in each company that uses it.

Note

If Business Central shows the message You need to disable Cloud Migration before you can activate the solution, disable Cloud Migration, and then start the activation again.

To complete Document Capture in the target environment

Do the following in each company where you have activated Document Capture. Exporting in one company doesn't update the other companies.

  1. If you use the Web Approval Portal, search for and select Continia User Setup, click Export Users, and wait until the export finishes.
  2. Search for and select Document Categories.
  3. On the action bar, click Functions > Export OCR Configuration Files, and wait until the Exporting Configuration Files dialog closes. A message shows how many configuration files were exported.
  4. Read the Email (Continia Cloud OCR) field for each document category. Each address contains the client ID, which must be the new client ID shown on the Cloud Subscription Management page.
  5. On each mailbox that forwards documents to Continia Cloud OCR, change the forwarding rule to the new address for the category. The rule is set up on the email account, not in Business Central.
  6. Search for and select Job Queue Entries, and set the entries you put on hold back to Ready.
  7. Where a document was waiting for approval before the move, send it for approval again.

To check that Document Capture receives documents, send a document to one of the new addresses and confirm that it arrives in the company.

Important

The old email addresses belong to the client in the source tenant. A forwarding rule that still uses an old address doesn't deliver documents to the target environment. If you see the message No configuration files were exported, don't change the forwarding rules. Contact Continia Support.

Tenant migration states

The State field on the Tenant Migration page shows where the environment is in a tenant migration.

StateMeaningWhat to do
Not StartedNo tenant migration affects the environment. The Continia solutions work as usual.Start a tenant migration just before the environment is moved.
Started but Not MovedThe tenant migration is started, and the environment hasn't been moved. The Continia solutions are deactivated.Move the environment, or cancel the tenant migration.
Moved but Not ActivatedThe environment runs in the target tenant under the name you entered. The Continia solutions are deactivated.Activate a Continia solution to create new client credentials.
Tenant MismatchThe environment runs in another tenant than the one its client credentials belong to. This happens when an environment is moved without a tenant migration, or ends up in another tenant or under another name than the ones you entered. The Continia solutions are deactivated.Activate a Continia solution to create new client credentials.
Renamed but Not MovedThe source environment was renamed after the tenant migration was started, without being moved. The Continia solutions are deactivated.Create a support ticket with Continia to have the tenant migration reset.

If the environment was moved without a tenant migration

An environment that is moved or restored into another tenant without a tenant migration shows the notification This environment runs in a different tenant than its Continia client credentials belong to. Continia solutions must be activated again. The state is Tenant Mismatch, and the Continia solutions are deactivated until you have activated them in the environment.

Activate the solutions and complete the procedure for Document Capture, as described for the target environment. On the Activate After Tenant Migration page, Previous Tenant ID is the tenant the environment was in when its client credentials were created. The notification that asks whether you want to activate a solution is shown as well, and its Activate now action starts the same activation.

Note

The move is detected only when the required version of Continia Core was installed in the environment before the move. An environment that was moved first and updated afterwards isn't detected, and the State field shows Not Started.

The steps that prepare the solutions in the source environment can't be done afterwards, so documents that were pending in the source tenant, and expense documents that weren't reopened, may need to be handled manually.