@Riccardo Perelli - Thanks for the question and using MS Q&A platform.
From the description I see add the prefix spark
is missing, that could be the reason for not getting the custom properties.
For adding custom properties in Synaspe you would need to add the prefix spark.<custom_property_name>
Note: Make sure you have attached your spark configuration to the Spark pool and have published the changes.
After publishing the changes, when you start a new spark session you could run spark.conf.get(<property_name>)
to get the value.
To get the current value of a Spark config property, evaluate the property without including a value.
%python
spark.conf.get("spark.<name-of-property>")
Hope this helps. Do let us know if you any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.