Tracking Environment configuration change
See original GitHub issueWe have this code to read configuration from Environment variables. Is there a way I can track any change in environment variable?
public static IHostBuilder UseHostAppConfiguration(this IHostBuilder hostBuilder)
{
hostBuilder.ConfigureHostConfiguration(configHost =>
{
string basePath = AppContext.BaseDirectory;
configHost.SetBasePath(basePath);
configHost.AddJsonFile("hostsettings.json", optional: true);
configHost.AddEnvironmentVariables();
// add multiple environments support to generic host from asp.net core
configHost.AddEnvironmentVariables(prefix: "ASPNETCORE_");
});
}
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Effectively tracking changes to configuration from dev to prod
First, you should provide a well, high quality documentation of all the entries in your configuration files, as well as some easily accessible ......
Read more >Configuration and Change Tracking
Change tracking and controlled change ensure that there is a record of the state of a system and if issues arise the cause...
Read more >Tracking Configuration File Changes
You can track the change history of configuration files for both personalization and user environment settings by activating Configuration ...
Read more >How to Track Changes in Your Cloud Environment ...
To see when your environment settings have changed, open the Versions tab while viewing your diagrams. The version tab will list the current...
Read more >Modify tracking changes in configuration files
Modify tracking changes in configuration files · Navigate to All > Pattern Designer > Discovery Patterns. · Click the pattern for the relevant...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hello @shagilt ,I think this article might help you https://docs.microsoft.com/en-us/aspnet/core/fundamentals/change-tokens?view=aspnetcore-3.1
This is correct. In general Environment Variables aren’t considered something that’s likely to change (they can’t be changed from outside the process for example).
Closing as this isn’t something we intend to add.