Creating a Mirrored Azure SQL Database in Fabric

This week they announced Announcing the Public Preview of Database Mirroring in Microsoft Fabric | Microsoft Power BI Blog | Microsoft Power BI

I decided to see how easy it was to create a mirrored database in Fabric and below are my findings (PS it is AMAZING)

I did follow the tutorial, to help me get it up and running here: Tutorial: Configure Microsoft Fabric mirrored databases from Azure SQL Database (Preview) – Microsoft Fabric | Microsoft Learn

What I did find is that there were some extra things I had to do to get it fully working, which I will explain below.

If you did not know Microsoft is offering a free Azure SQL Database (Try for free (preview) – Azure SQL Database | Microsoft Learn), which I had already setup. This is a great option to try out Azure SQL for free.

The other great news is that the free version of Azure SQL is compatible to be used with Fabric mirroring.

Prerequisites

By default, in the Power BI/Fabric Admin Portal mirroring is disabled.

I went into the Admin Portal settings and enabled the setting as shown below.

A white background with black text

Description automatically generated

There are also some other networking requirements that might need to be configured based on your requirements.

Next, I had to enable the System assigned managed identity for the SQL Server as shown below.

A screenshot of a computer

Description automatically generated

Next, I created the login and mapped the user to my database. Here I followed the exact steps in the tutorial I am pasting below.

A screenshot of a computer screen

Description automatically generated

Creating the Mirrored Azure SQL database in Fabric.

Finally, I was at the point where I could now create the mirrored Azure SQL Database in Fabric.

The first step is to navigate to your Fabric enabled App Workspace.

In my example I navigated to “Fabric – FourMoo”

I then clicked on the Create button.

A green circle with a white cross in it

Description automatically generated

I then needed to scroll down and click on See All

A screenshot of a computer

Description automatically generated

I then scrolled down to the Data Warehouse section and clicked on Mirrored Azure SQL Database as shown below.

A screenshot of a computer

Description automatically generated

I then gave my Mirror Azure SQL Database a name and clicked on Create.

A screenshot of a computer

Description automatically generated

Next, it brought up the window asking for which database connection to get started. I clicked on Azure SQL Database because I did not have an existing connection.

A screenshot of a computer

Description automatically generated

I then put in the details below for my Azure SQL Server, database name and for the Authentication kind I put basic because I had previously configured the username and password to connect to the Azure SQL Database.

A screenshot of a computer

Description automatically generated

I then clicked on Create, which created the connection.

On the next screen I left the defaults and clicked Mirror database. I assumed that it would just start mirroring (This is where my assumption was wrong)

A screenshot of a computer

Description automatically generated

Once this was setup I clicked on Monitor Replication.

A screenshot of a computer

Description automatically generated

When I had a look here, I could not see anything being replicated as shown below.

A screenshot of a computer

Description automatically generated

I waited a few minutes and still NOTHING was showing. I even went back to my database to make sure that there was data in the table.

I also went back into my Fabric App Workspace, and I could see the Mirrored database as shown below.

A screenshot of a phone

Description automatically generated

I then went back into the Mirrored database and clicked on Configure replication.

This time I toggled the switch to “Mirror all data” to off.

Now I can see why there was an error, almost all the tables were showing up with a red X. When I hovered over the red x I got an error saying, “This table can’t be mirrored to Fabric because it doesn’t have a primary key”.

A screenshot of a computer error

Description automatically generated

This was something I had not read in the documentation that the tables needed to have a primary key.

Fortunately I did have a table which had a primary key. I then enabled this table as shown below.

A screenshot of a mirror

Description automatically generated

I then clicked on Apply Changes.

Patiently I waited a few minutes, then clicked on the Monitor Replication

I could then see the data being mirrored.

A screenshot of a computer

Description automatically generated

I then tested inserting a row into my table and within a few minutes the data was in the mirrored database in Fabric.

Summary

Whilst I had a small hiccup it honestly took me all of 1 hour to get the mirrored Azure SQL Database up and running in Fabric. This is really amazing. The Fabric team has abstracted all the complexity away and made it super easy to use.

Now I can use this mirrored database data in any of my other fabric workloads.

As always, I hope you found this useful and if you have any questions, please feel free to leave it in the comments section.

Have a great weekend!

Creating a Mirrored Azure SQL Database in Fabric

This week they announced Announcing the Public Preview of Database Mirroring in Microsoft Fabric | Microsoft Power BI Blog | Microsoft Power BI

I decided to see how easy it was to create a mirrored database in Fabric and below are my findings (PS it is AMAZING)

I did follow the tutorial, to help me get it up and running here: Tutorial: Configure Microsoft Fabric mirrored databases from Azure SQL Database (Preview) – Microsoft Fabric | Microsoft Learn

What I did find is that there were some extra things I had to do to get it fully working, which I will explain below.

If you did not know Microsoft is offering a free Azure SQL Database (Try for free (preview) – Azure SQL Database | Microsoft Learn), which I had already setup. This is a great option to try out Azure SQL for free.

The other great news is that the free version of Azure SQL is compatible to be used with Fabric mirroring.

Prerequisites

By default, in the Power BI/Fabric Admin Portal mirroring is disabled.

I went into the Admin Portal settings and enabled the setting as shown below.

A white background with black text

Description automatically generated

There are also some other networking requirements that might need to be configured based on your requirements.

Next, I had to enable the System assigned managed identity for the SQL Server as shown below.

A screenshot of a computer

Description automatically generated

Next, I created the login and mapped the user to my database. Here I followed the exact steps in the tutorial I am pasting below.

A screenshot of a computer screen

Description automatically generated

Creating the Mirrored Azure SQL database in Fabric.

Finally, I was at the point where I could now create the mirrored Azure SQL Database in Fabric.

The first step is to navigate to your Fabric enabled App Workspace.

In my example I navigated to “Fabric – FourMoo”

I then clicked on the Create button.

A green circle with a white cross in it

Description automatically generated

I then needed to scroll down and click on See All

A screenshot of a computer

Description automatically generated

I then scrolled down to the Data Warehouse section and clicked on Mirrored Azure SQL Database as shown below.

A screenshot of a computer

Description automatically generated

I then gave my Mirror Azure SQL Database a name and clicked on Create.

A screenshot of a computer

Description automatically generated

Next, it brought up the window asking for which database connection to get started. I clicked on Azure SQL Database because I did not have an existing connection.

A screenshot of a computer

Description automatically generated

I then put in the details below for my Azure SQL Server, database name and for the Authentication kind I put basic because I had previously configured the username and password to connect to the Azure SQL Database.

A screenshot of a computer

Description automatically generated

I then clicked on Create, which created the connection.

On the next screen I left the defaults and clicked Mirror database. I assumed that it would just start mirroring (This is where my assumption was wrong)

A screenshot of a computer

Description automatically generated

Once this was setup I clicked on Monitor Replication.

A screenshot of a computer

Description automatically generated

When I had a look here, I could not see anything being replicated as shown below.

A screenshot of a computer

Description automatically generated

I waited a few minutes and still NOTHING was showing. I even went back to my database to make sure that there was data in the table.

I also went back into my Fabric App Workspace, and I could see the Mirrored database as shown below.

A screenshot of a phone

Description automatically generated

I then went back into the Mirrored database and clicked on Configure replication.

This time I toggled the switch to “Mirror all data” to off.

Now I can see why there was an error, almost all the tables were showing up with a red X. When I hovered over the red x I got an error saying, “This table can’t be mirrored to Fabric because it doesn’t have a primary key”.

A screenshot of a computer error

Description automatically generated

This was something I had not read in the documentation that the tables needed to have a primary key.

Fortunately I did have a table which had a primary key. I then enabled this table as shown below.

A screenshot of a mirror

Description automatically generated

I then clicked on Apply Changes.

Patiently I waited a few minutes, then clicked on the Monitor Replication

I could then see the data being mirrored.

A screenshot of a computer

Description automatically generated

I then tested inserting a row into my table and within a few minutes the data was in the mirrored database in Fabric.

Summary

Whilst I had a small hiccup it honestly took me all of 1 hour to get the mirrored Azure SQL Database up and running in Fabric. This is really amazing. The Fabric team has abstracted all the complexity away and made it super easy to use.

Now I can use this mirrored database data in any of my other fabric workloads.

As always, I hope you found this useful and if you have any questions, please feel free to leave it in the comments section.

Have a great weekend!

Creating a Mirrored Azure SQL Database in Fabric

This week they announced Announcing the Public Preview of Database Mirroring in Microsoft Fabric | Microsoft Power BI Blog | Microsoft Power BI

I decided to see how easy it was to create a mirrored database in Fabric and below are my findings (PS it is AMAZING)

I did follow the tutorial, to help me get it up and running here: Tutorial: Configure Microsoft Fabric mirrored databases from Azure SQL Database (Preview) – Microsoft Fabric | Microsoft Learn

What I did find is that there were some extra things I had to do to get it fully working, which I will explain below.

If you did not know Microsoft is offering a free Azure SQL Database (Try for free (preview) – Azure SQL Database | Microsoft Learn), which I had already setup. This is a great option to try out Azure SQL for free.

The other great news is that the free version of Azure SQL is compatible to be used with Fabric mirroring.

Prerequisites

By default, in the Power BI/Fabric Admin Portal mirroring is disabled.

I went into the Admin Portal settings and enabled the setting as shown below.

A white background with black text

Description automatically generated

There are also some other networking requirements that might need to be configured based on your requirements.

Next, I had to enable the System assigned managed identity for the SQL Server as shown below.

A screenshot of a computer

Description automatically generated

Next, I created the login and mapped the user to my database. Here I followed the exact steps in the tutorial I am pasting below.

A screenshot of a computer screen

Description automatically generated

Creating the Mirrored Azure SQL database in Fabric.

Finally, I was at the point where I could now create the mirrored Azure SQL Database in Fabric.

The first step is to navigate to your Fabric enabled App Workspace.

In my example I navigated to “Fabric – FourMoo”

I then clicked on the Create button.

A green circle with a white cross in it

Description automatically generated

I then needed to scroll down and click on See All

A screenshot of a computer

Description automatically generated

I then scrolled down to the Data Warehouse section and clicked on Mirrored Azure SQL Database as shown below.

A screenshot of a computer

Description automatically generated

I then gave my Mirror Azure SQL Database a name and clicked on Create.

A screenshot of a computer

Description automatically generated

Next, it brought up the window asking for which database connection to get started. I clicked on Azure SQL Database because I did not have an existing connection.

A screenshot of a computer

Description automatically generated

I then put in the details below for my Azure SQL Server, database name and for the Authentication kind I put basic because I had previously configured the username and password to connect to the Azure SQL Database.

A screenshot of a computer

Description automatically generated

I then clicked on Create, which created the connection.

On the next screen I left the defaults and clicked Mirror database. I assumed that it would just start mirroring (This is where my assumption was wrong)

A screenshot of a computer

Description automatically generated

Once this was setup I clicked on Monitor Replication.

A screenshot of a computer

Description automatically generated

When I had a look here, I could not see anything being replicated as shown below.

A screenshot of a computer

Description automatically generated

I waited a few minutes and still NOTHING was showing. I even went back to my database to make sure that there was data in the table.

I also went back into my Fabric App Workspace, and I could see the Mirrored database as shown below.

A screenshot of a phone

Description automatically generated

I then went back into the Mirrored database and clicked on Configure replication.

This time I toggled the switch to “Mirror all data” to off.

Now I can see why there was an error, almost all the tables were showing up with a red X. When I hovered over the red x I got an error saying, “This table can’t be mirrored to Fabric because it doesn’t have a primary key”.

A screenshot of a computer error

Description automatically generated

This was something I had not read in the documentation that the tables needed to have a primary key.

Fortunately I did have a table which had a primary key. I then enabled this table as shown below.

A screenshot of a mirror

Description automatically generated

I then clicked on Apply Changes.

Patiently I waited a few minutes, then clicked on the Monitor Replication

I could then see the data being mirrored.

A screenshot of a computer

Description automatically generated

I then tested inserting a row into my table and within a few minutes the data was in the mirrored database in Fabric.

Summary

Whilst I had a small hiccup it honestly took me all of 1 hour to get the mirrored Azure SQL Database up and running in Fabric. This is really amazing. The Fabric team has abstracted all the complexity away and made it super easy to use.

Now I can use this mirrored database data in any of my other fabric workloads.

As always, I hope you found this useful and if you have any questions, please feel free to leave it in the comments section.

Have a great weekend!

Creating a Mirrored Azure SQL Database in Fabric

This week they announced Announcing the Public Preview of Database Mirroring in Microsoft Fabric | Microsoft Power BI Blog | Microsoft Power BI

I decided to see how easy it was to create a mirrored database in Fabric and below are my findings (PS it is AMAZING)

I did follow the tutorial, to help me get it up and running here: Tutorial: Configure Microsoft Fabric mirrored databases from Azure SQL Database (Preview) – Microsoft Fabric | Microsoft Learn

What I did find is that there were some extra things I had to do to get it fully working, which I will explain below.

If you did not know Microsoft is offering a free Azure SQL Database (Try for free (preview) – Azure SQL Database | Microsoft Learn), which I had already setup. This is a great option to try out Azure SQL for free.

The other great news is that the free version of Azure SQL is compatible to be used with Fabric mirroring.

Prerequisites

By default, in the Power BI/Fabric Admin Portal mirroring is disabled.

I went into the Admin Portal settings and enabled the setting as shown below.

A white background with black text

Description automatically generated

There are also some other networking requirements that might need to be configured based on your requirements.

Next, I had to enable the System assigned managed identity for the SQL Server as shown below.

A screenshot of a computer

Description automatically generated

Next, I created the login and mapped the user to my database. Here I followed the exact steps in the tutorial I am pasting below.

A screenshot of a computer screen

Description automatically generated

Creating the Mirrored Azure SQL database in Fabric.

Finally, I was at the point where I could now create the mirrored Azure SQL Database in Fabric.

The first step is to navigate to your Fabric enabled App Workspace.

In my example I navigated to “Fabric – FourMoo”

I then clicked on the Create button.

A green circle with a white cross in it

Description automatically generated

I then needed to scroll down and click on See All

A screenshot of a computer

Description automatically generated

I then scrolled down to the Data Warehouse section and clicked on Mirrored Azure SQL Database as shown below.

A screenshot of a computer

Description automatically generated

I then gave my Mirror Azure SQL Database a name and clicked on Create.

A screenshot of a computer

Description automatically generated

Next, it brought up the window asking for which database connection to get started. I clicked on Azure SQL Database because I did not have an existing connection.

A screenshot of a computer

Description automatically generated

I then put in the details below for my Azure SQL Server, database name and for the Authentication kind I put basic because I had previously configured the username and password to connect to the Azure SQL Database.

A screenshot of a computer

Description automatically generated

I then clicked on Create, which created the connection.

On the next screen I left the defaults and clicked Mirror database. I assumed that it would just start mirroring (This is where my assumption was wrong)

A screenshot of a computer

Description automatically generated

Once this was setup I clicked on Monitor Replication.

A screenshot of a computer

Description automatically generated

When I had a look here, I could not see anything being replicated as shown below.

A screenshot of a computer

Description automatically generated

I waited a few minutes and still NOTHING was showing. I even went back to my database to make sure that there was data in the table.

I also went back into my Fabric App Workspace, and I could see the Mirrored database as shown below.

A screenshot of a phone

Description automatically generated

I then went back into the Mirrored database and clicked on Configure replication.

This time I toggled the switch to “Mirror all data” to off.

Now I can see why there was an error, almost all the tables were showing up with a red X. When I hovered over the red x I got an error saying, “This table can’t be mirrored to Fabric because it doesn’t have a primary key”.

A screenshot of a computer error

Description automatically generated

This was something I had not read in the documentation that the tables needed to have a primary key.

Fortunately I did have a table which had a primary key. I then enabled this table as shown below.

A screenshot of a mirror

Description automatically generated

I then clicked on Apply Changes.

Patiently I waited a few minutes, then clicked on the Monitor Replication

I could then see the data being mirrored.

A screenshot of a computer

Description automatically generated

I then tested inserting a row into my table and within a few minutes the data was in the mirrored database in Fabric.

Summary

Whilst I had a small hiccup it honestly took me all of 1 hour to get the mirrored Azure SQL Database up and running in Fabric. This is really amazing. The Fabric team has abstracted all the complexity away and made it super easy to use.

Now I can use this mirrored database data in any of my other fabric workloads.

As always, I hope you found this useful and if you have any questions, please feel free to leave it in the comments section.

Have a great weekend!

Creating a Mirrored Azure SQL Database in Fabric

This week they announced Announcing the Public Preview of Database Mirroring in Microsoft Fabric | Microsoft Power BI Blog | Microsoft Power BI

I decided to see how easy it was to create a mirrored database in Fabric and below are my findings (PS it is AMAZING)

I did follow the tutorial, to help me get it up and running here: Tutorial: Configure Microsoft Fabric mirrored databases from Azure SQL Database (Preview) – Microsoft Fabric | Microsoft Learn

What I did find is that there were some extra things I had to do to get it fully working, which I will explain below.

If you did not know Microsoft is offering a free Azure SQL Database (Try for free (preview) – Azure SQL Database | Microsoft Learn), which I had already setup. This is a great option to try out Azure SQL for free.

The other great news is that the free version of Azure SQL is compatible to be used with Fabric mirroring.

Prerequisites

By default, in the Power BI/Fabric Admin Portal mirroring is disabled.

I went into the Admin Portal settings and enabled the setting as shown below.

A white background with black text

Description automatically generated

There are also some other networking requirements that might need to be configured based on your requirements.

Next, I had to enable the System assigned managed identity for the SQL Server as shown below.

A screenshot of a computer

Description automatically generated

Next, I created the login and mapped the user to my database. Here I followed the exact steps in the tutorial I am pasting below.

A screenshot of a computer screen

Description automatically generated

Creating the Mirrored Azure SQL database in Fabric.

Finally, I was at the point where I could now create the mirrored Azure SQL Database in Fabric.

The first step is to navigate to your Fabric enabled App Workspace.

In my example I navigated to “Fabric – FourMoo”

I then clicked on the Create button.

A green circle with a white cross in it

Description automatically generated

I then needed to scroll down and click on See All

A screenshot of a computer

Description automatically generated

I then scrolled down to the Data Warehouse section and clicked on Mirrored Azure SQL Database as shown below.

A screenshot of a computer

Description automatically generated

I then gave my Mirror Azure SQL Database a name and clicked on Create.

A screenshot of a computer

Description automatically generated

Next, it brought up the window asking for which database connection to get started. I clicked on Azure SQL Database because I did not have an existing connection.

A screenshot of a computer

Description automatically generated

I then put in the details below for my Azure SQL Server, database name and for the Authentication kind I put basic because I had previously configured the username and password to connect to the Azure SQL Database.

A screenshot of a computer

Description automatically generated

I then clicked on Create, which created the connection.

On the next screen I left the defaults and clicked Mirror database. I assumed that it would just start mirroring (This is where my assumption was wrong)

A screenshot of a computer

Description automatically generated

Once this was setup I clicked on Monitor Replication.

A screenshot of a computer

Description automatically generated

When I had a look here, I could not see anything being replicated as shown below.

A screenshot of a computer

Description automatically generated

I waited a few minutes and still NOTHING was showing. I even went back to my database to make sure that there was data in the table.

I also went back into my Fabric App Workspace, and I could see the Mirrored database as shown below.

A screenshot of a phone

Description automatically generated

I then went back into the Mirrored database and clicked on Configure replication.

This time I toggled the switch to “Mirror all data” to off.

Now I can see why there was an error, almost all the tables were showing up with a red X. When I hovered over the red x I got an error saying, “This table can’t be mirrored to Fabric because it doesn’t have a primary key”.

A screenshot of a computer error

Description automatically generated

This was something I had not read in the documentation that the tables needed to have a primary key.

Fortunately I did have a table which had a primary key. I then enabled this table as shown below.

A screenshot of a mirror

Description automatically generated

I then clicked on Apply Changes.

Patiently I waited a few minutes, then clicked on the Monitor Replication

I could then see the data being mirrored.

A screenshot of a computer

Description automatically generated

I then tested inserting a row into my table and within a few minutes the data was in the mirrored database in Fabric.

Summary

Whilst I had a small hiccup it honestly took me all of 1 hour to get the mirrored Azure SQL Database up and running in Fabric. This is really amazing. The Fabric team has abstracted all the complexity away and made it super easy to use.

Now I can use this mirrored database data in any of my other fabric workloads.

As always, I hope you found this useful and if you have any questions, please feel free to leave it in the comments section.

Have a great weekend!