4

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.

Community
  • 1
  • 1
  • i suppose there's no solution to this yet – Alex Gordon May 09 '18 at 22:14
  • Same problem here, looking for a good samaritan :-) – MonDeveloper Apr 08 '19 at 13:43
  • I did some similar experimentation in [this question](https://stackoverflow.com/questions/56773087/what-environment-variables-are-available-to-the-setupentrypoint-process/56775085#56775085). You could run a similar experiment to see what kind of parameters are provided to your SetupEntryPoint. – pixelTitan Jul 31 '19 at 13:30

1 Answers1

0

See here for information on how the Application/Service Manifest APIs allow you to specify environment variables for each service that can be driven off of application (per instance) parameters, while also being able to specify suitable defaults.

pixelTitan
  • 455
  • 3
  • 10