title: kubernetes create persistant volume over azure blob storage
body: <h2>background</h2>
  
  <p>I am new to kubernetes, I am trying to install <code>stable/prometheus</code> using helm charts on AKS cluster and want to set up a persistent volume for it to consume.</p>
  
  <p>when you create a AKS cluster it keeps all the actual resources in a resource group MC_XXX_XXXX</p>
  
  <ul>
  <li>I manually created ABC-BLOB-STORAGE via the azure via azure portal</li>
  <li>created the persistant volume using <code>kubectl</code></li>
  <li>tried install prometheus via helm with a values file</li>
  </ul>
  
  <h3>Persistent Volume</h3>
  
  <pre><code>apiVersion: storage.k8s.io/v1beta1
  kind: StorageClass
  metadata:
    name: azurefile
    annotations:
      storageclass.beta.kubernetes.io/is-default-class: "true"
    labels:
      kubernetes.io/cluster-service: "true"
      addonmanager.kubernetes.io/mode: EnsureExists
  provisioner: kubernetes.io/azure-disk
  parameters:
    skuName: Standard_LRS
    location: eastus
    storageAccount: ABC-BLOB-STORAGE
  </code></pre>
  
  <h3>Values.YAML (snippet related to storage looks like)</h3>
  
  <pre><code>prometheus:
      name: prometheus
      server:
        configMapOverrideName: prometheus-config
          persistentVolume:
            enabled: true
            storageClass: azurefile
            size: 10Gi
  </code></pre>
  
  <h3>Error</h3>
  
  <p>when I install prometheus using helm :</p>
  
  <p><code>helm install stable/prometheus --name d02 -f values.yaml</code></p>
  
  <blockquote>
    <p>Error: release d02 failed: persistentvolumeclaims "d02-prometheus-alertmanager" is forbidden</p>
  </blockquote>
  
  <ul>
  <li>Feels like kubernetes needs access to the blob storage. I can pass in the access token but not sure how</li>
  </ul>