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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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

 

 

 

 

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.