I am trying to set some environment variables in a PowerShell script run from SetupEntryPoint based on values that are different per environment for use by a guest executable hosted in Service Fabric. I haven't been able to find a way to access the environment specific parameters outside of the full client API described in this question.
One workaround I'm considering trying is writing a wrapper EXE that can use the client API to pull the configuration and then call the real EXE as described here but that seems way complicated just to use per environment configuration for a guest executable so I'm hoping I'm just missing a simpler option.