Passing values from notebook to 'Set Variable' transformation within pipeline.

Peter Ott 1 Reputation point
2024-09-26T16:00:37.1633333+00:00

I have a synapse notebook in which I return a json string using:

...

variables_dict = {
    "adlspath": adlspath,
    "MDPKeyVault": MDPKeyVault,
    "jdbcHostname": jdbcHostname,
    "jdbcDatabase": jdbcDatabase
}

"jdbcDatabase": jdbcDatabase}
result = json.dumps(variables_dict)
mssparkutils.notebook.exit(result)

The ExitValue is: 

I can see the json in the output of the notebook, and the input of my 'Set Variable'. I'd like to parse this json string within the calling pipeline using 'Set Variable' transformations.  1. Is this possible?  2. What would be the 'Value' of my variables?
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.
4,903 questions
{count} votes

Your answer

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