broad-chef-99140
09/21/2021, 3:14 PMappsettings.json
and secrets.json
in C# Pulumi projects? My scenario is that I want to use a connection string for a resource on a completely different resource group. not controlled by pulumi as an application setting for my azure app service. I want to store the value of this connection string in secrets.json
like I would for any typicaly .net application. The only docs I can find is this https://www.pulumi.com/blog/7-ways-to-deal-with-application-secrets-in-azure/#2-configuration-files but this simply says "_With some configuration not shown here, the properties are filled at startup_", but it is the stuff that is not shown that I would love to see.green-stone-37839
09/21/2021, 5:35 PMnew ConfigurationBuilder
.AddJsonFile("appSettings.json", true, true)
.Build();
You'd then be able to load the configuration details into a POCO, where the rest of your app is free to use it.worried-city-86458
09/21/2021, 5:37 PMAddUserSecrets
config source.