<p>anyone know how i can see my aks persisted volume (azurefile) data in Azure Storage Explorer or in the portal?</p>

<p>persisted volume is working but i can't see the raw files somehow..</p>

<pre><code>kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
  name: azurefile
provisioner: kubernetes.io/azure-file
parameters:
  storageAccount: trstorage


apiVersion: v1
kind: PersistentVolume
metadata:
  name: mysql
spec:
  capacity:
    storage: 1Gi
  hostPath:
    path: "/data/mysql"
  accessModes:
  - ReadWriteMany
  storageClassName: azurefile
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: mysql
spec:
  accessModes:
    - ReadWriteMany
  storageClassName: azurefile
  resources:
    requests:
      storage: 500Mi
</code></pre>

<p>p.s. i know it's a bad idea to use azurefile for a database so ignore that for now.</p>

<p>when i look in the storage account i don't see any files, that's what i'm not understanding..</p>

brianbruff
<p>For your issue, I understand that you did the persisted volume in Azure Storage for your mysql in Azure Kubenets.</p>

<p>First, if your mount path is right and the path that mysql will automatically create files itself. You will see files in Azure Storage Explorer or in the portal with File Share.</p>

<p>Second, you can check if Azure Storage File Share was mounted correctly to the mount point. You can use the command <code>kubectl describe pod podName</code> to check it. The resulting screenshot will like this.
<a href="https://i.stack.imgur.com/swPVF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/swPVF.png" alt="enter image description here"></a></p>

<p>Or check it in the browser with the command <code>az aks browse --resource-group resourceGroupName --name AKSClusterName</code>. And the resulting screenshot will like this.
<a href="https://i.stack.imgur.com/nWjNb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nWjNb.png" alt="enter image description here"></a></p>

<p>Third, you can check the path with connecting to the AKS node. For connecting, you can follow the document <a href="https://learn.microsoft.com/en-us/azure/aks/aks-ssh" rel="nofollow noreferrer">SSH into Azure Kubernetes Service (AKS) cluster nodes</a>.</p>

<p>I did the test and the resulting screenshots here:</p>

<p>See persisted Volume in the portal. 
<a href="https://i.stack.imgur.com/zf3f6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zf3f6.png" alt="enter image description here"></a></p>

<p>See persisted Volume in the Microsoft Azure Storage Explorer.
<a href="https://i.stack.imgur.com/uJIBE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uJIBE.png" alt="enter image description here"></a></p>
