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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
yllsuarez76
Microsoft Employee
Microsoft Employee

Fabric: How to get the log analytics workspace name linked a workspace within a notebook?

Hello,

I am already writing data from a Fabric Notebook to a custom table hosted inside Log Analytic.

I would like to read the notebook name from the current WS, instead of me passing it as a parameter.

 

yllsuarez76_0-1721060768530.png

 

3 REPLIES 3
yllsuarez76
Microsoft Employee
Microsoft Employee

Hi, thanks in advance.

 

Specifically, I need to get the Azure Connections values for the workspace where a notebook is currently running.

 

 

yllsuarez76_0-1721132578022.png

I try the code below, but the REST API provides limited information regarding workspace.

yllsuarez76_1-1721133005615.png

 

 

 

 

Anonymous
Not applicable

HI @yllsuarez76,

AFAIK, current REST API haven't provided this type of API to getting detail information from the workspace settings.

You may need to manually trace the open workspace setting operations based on the dev tools to find out the backend API which used to load workspace settings.

For Azure log analytics REST API, it allows you to get the detail information, but it requires subscription and resource group id.

Workspaces - Get - REST API (Azure Log Analytics) | Microsoft Learn

Regards,

Xiaoxin Sheng

Anonymous
Not applicable

Hi @yllsuarez76l,

I'm not so clear for your descriptions, can you please explain more about your operations and expected results?

>>I am already writing data from a Fabric Notebook to a custom table hosted inside Log Analytic.

Did you mean to use notebook to read data from azure log analytics and store these records to a custom table which named 'Log Analytic' on lakehouse?

BTW, currently notebook seems not exist commands or functions to get the name from current used notebook.

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Fabric July 2025 Monthly Update Carousel

Fabric Monthly Update - July 2025

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

July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.