service-fabric icon indicating copy to clipboard operation
service-fabric copied to clipboard

[Question]: Is there a way to get application type version or service type version as environment variable

Open scharnyw opened this issue 3 years ago • 0 comments

Is your feature request related to a problem? Please describe your workload details. Is there any way to make application type version or service type version available to the application as an environment variable? They are not available by default as documented here. I'm wondering if there's anything we can do in Application Manifest and/or Service Manifest to inject it as an environment variable?

I understand that this information is available via ServiceContext, but I'm trying to access it from a SetupEntryPoint so I think environment variables are my only options.

Area/Component: SDK

Service Fabric Runtime Version: 7.2

Environment:

  • Standalone
  • OS: Windows 2019
  • Version 7.2

Assignees: /cc @microsoft/service-fabric-triage

scharnyw avatar Oct 21 '21 12:10 scharnyw