<p>I'm trying to mount an <code>azureFile</code> volume on a Windows K8S pod, but I get the error </p>

<blockquote>
  <p>MountVolume.SetUp failed for volume "azure-file-share" : azureMount:
  SmbGlobalMapping failed: fork/exec
  C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe: The
  parameter is incorrect., only SMB mount is supported now, output: ""</p>
</blockquote>

<p>What is wrong?</p>

Phyxx
<p>The issue where was a bad <code>azurestorageaccountkey</code> value in the secret. You can have a secret like:</p>

<pre><code>apiVersion: v1
kind: Secret
metadata:
  name: volume-azurefile-storage-secret
type: Opaque
data:
  azurestorageaccountname: &lt;base 64 encoded account name&gt;
  azurestorageaccountkey: &lt;base 64 encoded account key&gt;
</code></pre>

<p>What was throwing me was that Azure already base 64 encodes the account key, and it was not clear if you need to double encode it for this secret file. </p>

<p>The answer is yes, you do double encode it. If you do not, you get the error from the question.</p>
