# Migration

## Migrate data from version 1

This wizard will transfer your previous configuration and history in version 1:

* Microsoft license prices - NB: Go to [Subscription page](https://docs.bsure.io/user-guides/customer-settings/subscriptions) to set price per subscription after migration
* Configured applications with cost and units bought
* Configured groups with assigned cost
* User attribute history
* User license history
* Sign-in logs

In the address bar, add /admin-settings/migration after main url to Bsure Insights

<figure><img src="https://300487332-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FygloFyyKhIYtV62dMZJc%2Fuploads%2FalqYGxlRKcgMlFSazwF8%2Fimage.png?alt=media&#x26;token=ee84e44b-332a-40cd-80ca-19231def04db" alt=""><figcaption></figcaption></figure>

Paste connection string (not the Key) to the [storage account](https://learn.microsoft.com/en-us/azure/storage/common/storage-account-keys-manage?tabs=azure-portal) used by Bsure Insights version 1 into the field:

<figure><img src="https://300487332-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FygloFyyKhIYtV62dMZJc%2Fuploads%2FEssf9RILwxZgHljUtckJ%2Fimage.png?alt=media&#x26;token=ced5bd14-3c34-42c5-82a0-ced133ad336e" alt=""><figcaption></figcaption></figure>

Press Run\
First it will show pending, and when done it will state Success. Process can take up to a few hours, but feel free to continue using the application while copy-job runs.

<figure><img src="https://300487332-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FygloFyyKhIYtV62dMZJc%2Fuploads%2F5UBKe4Ak7mE1CJRY2ecj%2Fimage.png?alt=media&#x26;token=f8b28f3b-de44-40c3-8fb1-563e5c285a2e" alt=""><figcaption></figcaption></figure>

## Remove version 1 after migration

When version 2 is up and and running, data is migrated and users are added, you can follow these steps to remove version 1:

There are 3 components involved in version 1:

* Azure Managed Application
* Storage Account
* Power BI app / workspace

### Remove Managed application and Storage account

Find the resource group in Azure where you have installed Bsure.

Delete the Managed application that belongs to version 1, and the Storage account. Only keep the new Managed application for the version 2.

<figure><img src="https://300487332-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FygloFyyKhIYtV62dMZJc%2Fuploads%2FtUsdvEteQ6JoAaw8PyGu%2Fimage.png?alt=media&#x26;token=62e8bbeb-36cc-457b-8cd6-c1d5af8ffe22" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
The resource groups named `mrg-bsureinsights-2025xxxxxxxxxxx` are connected to the Managed application. You don't have to delete these. It will be removed automatically when the Managed application is deleted
{% endhint %}

### Remove version 1 Power Bi App / Workspace

Go to <https://app.powerbi.com/groups/me/apps> and check who is owner of the version 1 Power Bi App.

<figure><img src="https://300487332-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FygloFyyKhIYtV62dMZJc%2Fuploads%2Fx1kDgxKsUZWOYHfLm3Pq%2Fimage.png?alt=media&#x26;token=82fbc8f3-6f19-4aa5-9ec8-64f964058fc8" alt=""><figcaption></figcaption></figure>

As owner go to **Workspaces**, and open the version 1 workspace.\
The workspace that has a "b." logo is the version 1 workspace.

<figure><img src="https://300487332-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FygloFyyKhIYtV62dMZJc%2Fuploads%2FRtMd0ZRNcRHSZJner99k%2Fimage.png?alt=media&#x26;token=383cb241-b4de-4d25-ba50-46d0dc7c1f40" alt=""><figcaption></figcaption></figure>

Open **Workspace settings:**

<figure><img src="https://300487332-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FygloFyyKhIYtV62dMZJc%2Fuploads%2FdgqfNpfFa4D4q1YSr6FB%2Fimage.png?alt=media&#x26;token=c548b71d-aac7-4e37-a425-db68d5cb1530" alt=""><figcaption></figcaption></figure>

Scroll to the bottom of the General page, and **Remove this workspace**

<figure><img src="https://300487332-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FygloFyyKhIYtV62dMZJc%2Fuploads%2F94uAhppMBj024CPTt6Iv%2Fimage.png?alt=media&#x26;token=01ddee40-20be-4383-87fd-25534ae51cc0" alt=""><figcaption></figcaption></figure>

You have now completely removed Bsure Insights version 1.
