<p>I initially had only app on Linux node and used mounted volume for it (Azure Storage Account and File Share), and everything works perfectly.</p>
<p>Extracted definition from YAML:</p>
<pre><code>    volumeMounts:
      - name: test-volume
        mountPath: /opt/arena/
  volumes:
  - name: test-volume
    azureFile:
      secretName: test-secret
      shareName: test-share
</code></pre>
<p>Now for my second app (same app but deployed on Windows container) I need to use the same storage account and file share.
Only I will mount windows path.</p>
<pre><code>....
    volumeMounts:
      - name: test-volume
        mountPath: &quot;C:\\arena&quot;
    ........ 
  volumes:
    - name: test-volume
      azureFile:
        secretName: test-secret
        shareName: test-share
</code></pre>
<p>When mounted for linux I am getting immediately my log directory with file &quot;ads.log&quot;</p>
<pre><code>log
|__ads.log
</code></pre>
<p>But the same directory &quot;log&quot; and the same file &quot;ads.log&quot; exists on the Windows container as well.</p>
<p>I would like to use the same storage account and file share on Azure in order not to increase costs.
But how I can achieve that both Linux and Windows containers are mounted into volumes but also in the same time to differentiate which log is from which container???</p>
<p>Also additional question since I didn't yet do the windows mounting: is the <code>mountPath: &quot;C:\\arena&quot;</code> correct way of defining this? Because in some examples on web some plugins are mentioned for windows etc.</p>
<p>Thanks</p>

vel
<p>First, the mount format for windows is right. So you don't need to worry about it. Second, to differentiate the log folder which is for Linux container and which is for windows container from the same file share, you can mount the subfolders of the file share.</p>
<p>File Share:</p>
<pre><code>aksshare
│── linux
│── windows
</code></pre>
<p>screenshot:</p>
<p><a href="https://i.stack.imgur.com/x1JDi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/x1JDi.png" alt="enter image description here" /></a></p>
<p>Then the mount the file share like this:</p>
<pre><code>  .....
  volumeMounts:
    - name: azure
      mountPath: /mnt/azure
volumes:
  - name: azure
    azureFile:
      shareName: aksshare/linux
      secretName: azure-secret
</code></pre>
<p>This way will mount the two subfolders of the file share to the different containers and won't affect each other.</p>
