Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply

Updating a Semantic Model to use a different Workspace

I have created a Semantic Model via the Fabric web UI, with tables coming from Lakehouses in a particular Workspace.

 

I want to update this Semantic Model to use tables from a different Lakehouse. How do I do this?

 

It looks like it is related to the Settings > Gateway and cloud connections area of the model. The "SqlServer" string is the same ID as the SQL endpoint of the Lakehouse the model is using, but I can't figure out where the "database" ID needs to come from. I have two Semantic Models pointing to the same Lakehouse, and they have the same SqlServer ID, but different database IDs.

1 ACCEPTED SOLUTION

I had a call with Microsoft and resolved this issue.

 

  1. Open Deployment Pipeline’s “Rules”

  2. Chose “Data source rules”

  3. “Server”

    1. Navigate to the Workspace you want the Semantic Model’s data to come from

    2. Click the three dots against the Lakehouse you need to use > Settings

    3. Copy the SQL analytics endpoint > SQL connection string into the “Server” section of the Data source rule

  4. “Database”

    1. Navigate to the Workspace you want the Semantic Model’s data to come from

    2. Click into the SQL analytics endpoint of the Lakehouse you need to use

    3. Copy the GUID after mirroredwarehouse in the URL into the “Database” section of the Data source rule, i.e. the "Artifact ID" in a URL that looks like this https://app.fabric.microsoft.com/groups/<Workspace ID>/<Artifact type>/<Artifact ID>/

View solution in original post

11 REPLIES 11

I had a call with Microsoft and resolved this issue.

 

  1. Open Deployment Pipeline’s “Rules”

  2. Chose “Data source rules”

  3. “Server”

    1. Navigate to the Workspace you want the Semantic Model’s data to come from

    2. Click the three dots against the Lakehouse you need to use > Settings

    3. Copy the SQL analytics endpoint > SQL connection string into the “Server” section of the Data source rule

  4. “Database”

    1. Navigate to the Workspace you want the Semantic Model’s data to come from

    2. Click into the SQL analytics endpoint of the Lakehouse you need to use

    3. Copy the GUID after mirroredwarehouse in the URL into the “Database” section of the Data source rule, i.e. the "Artifact ID" in a URL that looks like this https://app.fabric.microsoft.com/groups/<Workspace ID>/<Artifact type>/<Artifact ID>/

rajeshgumpena
Regular Visitor

1. A semantic model (in Fabric) can be built in Direct Lake mode (where tables are read directly from a lakehouse via parquet/Delta) or in Import / DirectQuery modes via SQL analytics endpoints.
2. The model’s data sources (gateway / cloud connection settings) are managed under Settings → Gateway & cloud connections in the semantic model item.
3. You can script or copy a semantic model via APIs or external tools (e.g. Semantic Link Labs) to another workspace. The copy may preserve metadata/logic, but you’ll likely need to reconfigure the connection sources / credentials.
4. For Direct Lake models, the data connection metadata includes a pointer to the SQL analytics endpoint of the lakehouse. The model “database” ID is tied to that endpoint.
Microsoft Learn

My model is Direct Lake.

 

Under Settings > Gateway and cloud connections I see something like this:

SqlServer{"server":"aaaaaaaaa-111111111111.datawarehouse.fabric.microsoft.com","database":"b2-c3-d4"}


I can find the "server" string - it's the SQL endpoint URL for the Lakehouse - but not the "database" one. What does this GUID relate to? When I look at different Semantic Models using the same Lakehouse, they show different values for this string...

That GUID in the "database" field isn’t the actual database name you’d use to connect via SQL; it’s an internal Fabric-assigned ID for the semantic model’s “database” object within the SQL endpoint. Even if multiple semantic models point to the same Lakehouse, each model has its own internal metadata, so the GUID differs across models.

Think of it as the semantic model’s “wrapper” ID inside the endpoint — it tells Fabric which model’s metadata and measures to expose, while the server string always points to the same Lakehouse SQL endpoint.

So when working with Direct Lake, you only need the server to query the lakehouse. The database GUID is mostly for internal tracking and API references.

So is there a way for me to update those strings to change it such that a semantic model created in dev and pointing to dev's lakehouse points to prod's lakehouse when it is published there?

 

Basically I want to develop my semantic model in dev using local data, build reports on top of it, and then deploy the data plus model plus reports to prod, with the only difference being that the data is coming from prod's lakehouse at that point.

Yes — that’s exactly the pattern Fabric is designed for, but you don’t update the GUIDs manually. Instead, the standard approach is:

1. Use the same semantic model definition in dev and prod, but configure the Gateway & Cloud connections in each environment to point to the respective Lakehouse.

2. When you promote or copy a semantic model (via APIs, Semantic Link Labs, or workspace “Copy” features), you can preserve the model’s metadata and DAX logic. After that, you just update the data connection in prod to point to the production Lakehouse.

3. The GUID you see in dev is automatically regenerated in prod, so each environment’s semantic model has its own internal ID — you don’t need to—and shouldn’t—try to set it manually.

In short: develop against dev Lakehouse → copy model to prod → update Gateway & Cloud connection to prod Lakehouse → reports continue working.

Thank you.

 

What is involved in the process of "configure the Gateway & Cloud connections in each environment"? I'm not sure what the gateway and cloud connections are, and I don't remember setting up any of those things (not explicitly, at least) when creating things in dev, so I'm not sure which elements I need to change in prod or how.

In Fabric / Power BI, the Gateway & Cloud connections are basically the configuration that tells the semantic model where to get its data in each environment. In Dev, you might not have explicitly set anything because it can auto-connect to your Lakehouse, but in Prod you’ll need to make sure it points to the right endpoint.

The process usually involves:

1. Go to the semantic model in Fabric → click Settings → Gateway & Cloud connections.

2. You’ll see the list of data sources the model uses (for Direct Lake, this is usually the SQL endpoint of your Lakehouse).

3. Update the connection to point to your Prod Lakehouse endpoint. For cloud sources, this might involve selecting or adding a cloud connection or credentials that have access to Prod.

4. Save changes — the semantic model now queries Prod data, while keeping all your measures, calculated tables, and DAX logic intact.

Basically, the connection settings are just pointers to the right data source, and that’s the only thing you need to change when moving from Dev → Prod.

"2. You’ll see the list of data sources the model uses (for Direct Lake, this is usually the SQL endpoint of your Lakehouse)."

 

The sources aren't human-readable. There is a "server" which contains the URL of my Lakehouse's SQL endpoint, and a "database" which is a GUID that I can't find the source for. I can replace the URL with the correct location for the deployed Workspaces, but I can't find any documentation behind what the GUID needs to be.


1. Go to the semantic model in Fabric → click Settings → Gateway & Cloud connections.

2. You’ll see the list of data sources the model uses (for Direct Lake, this is usually the SQL endpoint of your Lakehouse).

3. Update the connection to point to your Prod Lakehouse endpoint. For cloud sources, this might involve selecting or adding a cloud connection or credentials that have access to Prod.

4. Save changes — the semantic model now queries Prod data, while keeping all your measures, calculated tables, and DAX logic intact.

Basically, the connection settings are just pointers to the right data source, and that’s the only thing you need to change when moving from Dev → Prod.


Doesn't this go against what you said previously?

 

The GUID you see in dev is automatically regenerated in prod, so each environment’s semantic model has its own internal ID — you don’t need to—and shouldn’t—try to set it manually.


In Settings → Gateway & Cloud connections, I don't see what I _can_ change other than the GUIDS


@rajeshgumpena wrote:

1. A semantic model (in Fabric) can be built in Direct Lake mode (where tables are read directly from a lakehouse via parquet/Delta) or in Import / DirectQuery modes via SQL analytics endpoints.
2. The model’s data sources (gateway / cloud connection settings) are managed under Settings → Gateway & cloud connections in the semantic model item.
3. You can script or copy a semantic model via APIs or external tools (e.g. Semantic Link Labs) to another workspace. The copy may preserve metadata/logic, but you’ll likely need to reconfigure the connection sources / credentials.
4. For Direct Lake models, the data connection metadata includes a pointer to the SQL analytics endpoint of the lakehouse. The model “database” ID is tied to that endpoint.
Microsoft Learn


How do I find the database ID? My connection string looks like this:

 

SqlServer{"server":"aaaaaaaaa-111111111111.datawarehouse.fabric.microsoft.com","database":"b2-c3-d4"}

 

I've been able to find the "server" string (it's the SQL connection URL for the Lakehouse), but I can't figure out how to identify where the "database" GUID has come from.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Fabric Update Carousel

Fabric Monthly Update - October 2025

Check out the October 2025 Fabric update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.