DEV Community

Discussion on: Azure Pipelines Decorators - ALL you NEED to know

Collapse
 
clercmedia profile image
clercmedia

Hello Davide, this is very interesting, I followed your example and it works for the simple hello world ! Now I am looking to call an API to an external service. My problem is where to store the credentials as it will 1) be accessible from all projects 2) Find 0 document of The decorator accessing any KeyStore or Service connection data?

Do you have any clue ?

Cheers.

Collapse
 
n3wt0n profile image
Davide 'CoderDave' Benvegnù

Hi, sorry I haven't replied to your email (yep, I've seen it ;) ) but I was off a couple of days. Anyway, this is a good scenario, imho the best thing to do is using KeyVault to store the credentials, and use the KeyVault step to "inject" the secret you need into your pipeline. Something similar to what described here: azuredevopslabs.com/labs/vstsexten... (even tho that is for a "full" pipeline)

Collapse
 
clercmedia profile image
clercmedia

I will try this !! many thanks to you !
I didn't found any example of this scenario anywhere. That might be an interesting article if I succeed ;) !

Cheers !

Thread Thread
 
n3wt0n profile image
Davide 'CoderDave' Benvegnù

Let me know how it goes :)