如何在 Azure Service Fabric 中使用变量替换

How do I use variable substitution in Azure Service Fabric

尝试通过专门针对容器中环境变量的 Service Fabric 服务清单模拟 compose 文件类型部署。静态值工作正常,不是 working/documented 的是我如何将某些东西从主机传递到容器中。 在 compose 中,以下代码会将容器主机中的 hostname 变量放入容器环境变量中,我该如何在 Service Fabric 清单中执行此操作?

 environment: 
  - "SHELL=powershell.exe"
  - "HostName=${hostname}"

根据引用的 github 问题,目前似乎是 unsupported