SetupEntryPoint 进程可以使用哪些环境变量?

What environment variables are available to the SetupEntryPoint process?

我正在寻找一个脚本来作为 Service Fabric 服务的 SetupEntryPoint 执行。我想知道该过程可以使用哪些环境变量。

记录了可用于 运行 服务的环境变量 here. The documentation for SetupEntryPoint may be found here 但没有回避哪些环境变量可用于进程。

我将以下简单批处理文件写入 运行 作为我服务的 SetupEntryPoint,它将进程可用的所有环境变量转储到临时文件:

powershell.exe -NonInteractive -Command "& { Get-ChildItem 'env:*' | Sort-Object name | Format-Table -Wrap | Out-File 'C:/Windows/Temp/EnvVariables.txt' }"

在我 re-deployed 我的测试 Service Fabric 应用程序之后,确定了以下与 Service Fabric 相关的变量(出于安全目的我省略了这些值):

Fabric_ApplicationHostId  
Fabric_ApplicationHostType
Fabric_ApplicationId 
Fabric_ApplicationName 
Fabric_CodePackageInstanceSeqNum
Fabric_CodePackageName
Fabric_Endpoint_IPOrFQDN_RemotingEndpoint
Fabric_Endpoint_RemotingEndpoint
Fabric_Folder_App_Log          
Fabric_Folder_App_Temp         
Fabric_Folder_App_Work         
Fabric_Folder_Application      
Fabric_Folder_Application_OnHost                             
Fabric_IsCodePackageActivatorHost
Fabric_IsContainerHost         
Fabric_NodeId                  
Fabric_NodeIPOrFQDN            
Fabric_NodeName                
Fabric_PartitionId             
Fabric_RuntimeConnectionAddress
Fabric_RuntimeSslConnectionAddress
Fabric_RuntimeSslConnectionCertEncodedBytes
Fabric_RuntimeSslConnectionCertKey
Fabric_RuntimeSslConnectionCertThumbprint
Fabric_ServiceName
Fabric_ServicePackageActivationGuid
Fabric_ServicePackageActivationId
Fabric_ServicePackageInstanceSeqNum
Fabric_ServicePackageName
Fabric_ServicePackageVersionInstance
FabricActivatorAddress
FabricPackageFileName
HostedServiceName

其中许多可以 cross-referenced 与文档 here。如果这些在与 SetupEntryPoint 特别相关的地方被正式记录下来,那就太好了。