title: How to get the docker host name in azure itoedge enviroment variable
body: <p>Hi I am trying to get the hostname into my azure module by getting it form the enviroment variables. the module is written in C# and .NetCore 3.1</p>
  <pre><code>var deviceId = Environment.GetEnvironmentVariable(&quot;HOST_HOSTNAME&quot;);
  </code></pre>
  <p>I have tried to add the variable in de deployment template</p>
  <pre><code>    &quot;createOptions&quot;: {
                 &quot;Cmd&quot;: [
                      &quot;-e HOST_HOSTNAME=(hostname)&quot;
                    ]
         }
  </code></pre>
  <p>The result is</p>
  <pre><code>    deviceId == null
  </code></pre>