Synapse System Variable in synapse notebook

Muralikrishna Pirla 216 Reputation points
2022-05-27T05:41:53.283+00:00

Hi Team,

i have a requirement to read the synapse system variable like ( Work Space Name ) in the Synapse notebook directly without passing as parameter, is there any way for that and if yes how to accomplish that.

206047-image.png

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
0 comments No comments
{count} votes

Answer accepted by question author
  1. ShaikMaheer-MSFT 38,556 Reputation points Microsoft Employee Moderator
    2022-05-28T13:17:30.487+00:00

    Hi @Muralikrishna Pirla ,

    Thank you for posting query in Microsoft Q&A Platform.

    mssparkutils.runtime.context can get you workspace name information for you.

    Please check below screenshots for better idea.
    206412-image.png

    Please check below resource to know more about mssparkutils.runtime.context.
    MSSparkUtils Runtime Utils in Synapse Notebook in Azure Synapse Analytics

    Hope this helps. Please let us know if any further queries.

    --------
    Please consider hitting Accept Answer. Accepted answers help community as well.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.