Accessing environment variable value from service fabric environment xml file
Accessing environment variable value from service fabric environment xml file I have a scenario where I need to read an environment variable from the machine where my Service Fabric application is deployed. More specifically in my cloud.xml (environment file) I want StorageConnectionString to use the value from one of the environment variable that is set on the machine by some other external tool. StorageConnectionString <?xml version="1.0" encoding="utf-8"?> <Application xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Name="fabric:/AppFabricName.ServiceFabric" xmlns="http://schemas.microsoft.com/2011/01/fabric"> <Parameters> <Parameter Name="StorageConnectionString" Value="%ENVVARIABLE%" /> </Parameters> </Application> Is the above valid ? Did not work when I tried even though running SET on cmd prompt ...
