JayV-0412 avatar image
0 Votes"
JayV-0412 asked ShaikMaheer-MSFT commented

Azure data factory - how to pass SecureString to pipeline?

I use a Web activity to perform a Key Vault lookup in my Azure data factory pipeline. I need to pass down the output value of this activity into another pipeline, which will then consume the secret in one of its activities. I use Execute Pipeline activity to call the other pipeline. There is a parameter defined in the other pipeline to accept the secret as a SecureString. But there is no configuration available on the Execute Pipeline activity to set the type of the parameter that I pass in as a Secure String. I use '@activity(<web activity name>).output.value' as an Expression to pass in the value and this gets displayed in the monitor as the Inputs of the Execute Pipeline activity.

What is the correct way to pass in the parameter so that it remains secure?

· 3
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.

Hi @JayV-0412 ,

Welcome to Microsoft Q&A Platform. Thank you for posting your query here.

You can declare your parameter in another pipeline as "SecureString" type. The string value will be masked with asterisks '*' during Get or List API calls.

In below example "Pipeline4" has a parameter "Parameter1" which is "SecureString" type. and I am calling that Pipeline4 using Execute pipeline activity from another pipeline. You can see that at pipeline level your parameter value is masked in below image.


Please let us know if this works or any further queries. Thank you.

0 Votes 0 ·
image.png (340.2 KiB)

Hi @JayV-0412 ,

Following up to see is above commented helps you? Please confirm.

0 Votes 0 ·

Hi @JayV-0412 ,

Just checking is above commented helps you? Please confirm.

0 Votes 0 ·

0 Answers