https://pulumi.com logo
#azure
Title
# azure
c

clean-alarm-24426

03/07/2022, 2:58 PM
Good morning all. My Google-Fu is just not working recently. I'm setting up a fairly simple stack where I want to set resource names based on data set in an Azure Pipeline. That data could potentially come from a YAML defined parameter, a YAML defined variable, or an Azure Pipeline variable group. Can someone point me to some documentation about how to access this data from inside the Pulumi .NET app? Do I need to run a PowerShell script to set environment variables? Does the Pulumi AZ Pipelines task provide a mechanism to do this that I've just missed? Is there a method that is considered best practice?
f

future-air-70511

03/09/2022, 5:13 PM
Have you tried https://marketplace.visualstudio.com/items?itemName=pulumi.build-and-release-task? You can use that to leverage pulumi config.
c

clean-alarm-24426

03/15/2022, 12:32 PM
@future-air-70511 - It's been a crazy week or so. I only just saw this reply. Thanks for the response. For some reason, I just didn't make the mental connection between the Pulumi Config and the Pipelines. It took me about 10 minutes of reading and re-reading to make the connection, but this is exactly the bit that I needed. It's amazing how the simple stuff escapes you. Thanks!
f

future-air-70511

03/15/2022, 1:46 PM
No worries, and cheers!
aw thanks 1
8 Views