define storageClass that targets a specific ClusterStorage

Daniele Francioni 21 Reputation points
2026-06-30T09:42:03.4333333+00:00

as per https://learn.microsoft.com/en-us/azure/azure-local/deploy/enable-external-storage?view=azloc-2606#step-10-add-storage-path-in-the-azure-portal, we have added a new Storage Path. Now we would like to provision persistent volumes from a local AKS Cluster in that storage path.
as per https://learn.microsoft.com/en-us/azure/azure-local/manage/use-external-storage-for-containerized-workloads?view=azloc-2604, it should be possibile to create a storage class that can be used to place PVs on a specific local path, still the documentation lacks of examples.

Where can I find an example to create a storageclass that uses c:\ClusterStorage\Volume1 (for example) to store PVs from the AKS cluster?

Azure Storage
Azure Storage

Globally unique resources that provide access to data management services and serve as the parent namespace for the services.


1 answer

Sort by: Most helpful
  1. Vinodh247-1375 44,156 Reputation points Volunteer Moderator
    2026-07-03T16:04:36.0266667+00:00

    Hi ,

    Thanks for reaching out to Microsoft Q&A.

    You cannot directly point a Kubernetes StorageClass to a Windows path like C:\ClusterStorage\Volume1 in AKS (including azure Local/AKS on HCI). Kubernetes works through CSI drivers, not raw host paths. To use that Cluster Shared Volume, you must expose it via a supported CSI driver such as the SMB CSI driver or a host-based CSI (for ex, SMB share backed by that path). Practically, you first share C:\ClusterStorage\Volume1 as an SMB share from the host, then create a StorageClass referencing the SMB CSI driver with the share UNC path (for example \\node\share). The StorageClass does not take local disk paths; it only takes driver-specific parameters (server/share for SMB, export path for NFS, etc.). There is no official example mapping directly to C:\ClusterStorage\... because that is not a supported abstraction.

    Please 'Upvote'(Thumbs-up) and 'Accept' as answer if the reply was helpful. This will be benefitting other community members who face the same issue.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.