question

MuraliKrishnaPirla avatar image
0 Votes"
MuraliKrishnaPirla asked MuraliKrishnaPirla commented

Synapse System Variable in synapse notebook

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
image.png (15.2 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ShaikMaheer-MSFT avatar image
0 Votes"
ShaikMaheer-MSFT answered MuraliKrishnaPirla commented

Hi @MuraliKrishnaPirla ,

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.


image.png (112.3 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

This is working like a charm, Thanks Maheer for your help.

0 Votes 0 ·