When specifying environment variables, Windows agents should be able to load the config file.
Current behavior
We specify that windows environment variables can be placed in the agent config, but this is factually incorrect and will result in the agent loading the default configuration.
Corrections needed
Windows environment variables must be added to and loaded from the registry:
Description
Category
This is an issue with:
Affected pages
https://docs.sensu.io/sensu-go/latest/observability-pipeline/observe-schedule/agent/#environment-variables
Expected behavior
When specifying environment variables, Windows agents should be able to load the config file.
Current behavior
We specify that windows environment variables can be placed in the agent config, but this is factually incorrect and will result in the agent loading the default configuration.
Corrections needed
Windows environment variables must be added to and loaded from the registry:
Adding the variables there will ensure that they're loaded correctly and any modifications made to the agent config file are retained.