Loading...

Disable automatic distribution of data across CSVs on AKS on Azure Stack HCI and Windows Server

Disable automatic distribution of data across CSVs on AKS on Azure Stack HCI and Windows Server

Like every person is different, every Kubernetes cluster is different based on your use cases and requirements. To give you more flexibility and options in your Azure Kubernetes Service (AKS) on-premises deployment, you can now choose whether to enable or disable automatic distribution of your cluster data in the July 2022 update! 

 

A year ago, we introduced automatic distribution of virtual machine data across multiple cluster shared volumes (CSVs).  The cluster data was auto distributed in the cluster shared volumes through a round robin scheduling method. When data needed to be stored, AKS on-prem would check the CSVs one by one to see which was available to be used. For example, if the first CSV checked was not available, then AKS on-prem would move on to the next one until it found one that could be used. While this is perfectly fine for most deployment scenarios and helps build resiliency in case of storage outages, sometimes you may want to only have one dedicated CSV to store data in a particular cluster deployment. Before, there was no opt-out option for auto distribution but now, with the July release of AKS on-prem, you have the option of disabling auto distribution and selecting the CSV you would like to be used for all your deployment data! 

 

To try out this new feature, it’s a few simple parameter changes in your set up. You can only turn off auto distribution on a new deployment, so the feature cannot changed existing deployment. After deployment of the AKS on-prem host, the setting cannot be changed. When you’re setting your host configurations with the `Set-AksHciConfig` command, use the new parameter `-createAutoConfigContainers` with the value `$false`. The default is to set the value as `$true`, so if you skip this step, auto distribution will happen by default. If ‘-createAutoConfigContainers’ is set to false, then the path that is specified in the parameter ‘-imageDir’ will be the only CSV that is used to store cluster data in your deployment.  

 

Check out the example below of how `Set-AksHciConfig` would look with auto distribution disabled! 

 

Set-AksHciConfig -createAutoConfigContainers $false -imageDir c:\ClusterStorage\Volume2\ImageStore -workingDir c:\ClusterStorage\Volume1\WorkDir -cloudConfigLocation c:\clusterstorage\volume1\Config -vnet $vnet -cloudservicecidr "172.16.10.10/16" 

 

*This command is an example and assumes that you have already set your `-vnet` configurations. You can find more details about the new parameter on the Set-AksHciConfig PowerShell reference documentation

 

And that’s all you need! Try out AKS on Azure Stack HCI and Window Server with this new feature through the links below! 

 

Useful links: 

Try for free: https://aka.ms/AKS-HCI-Evaluate 
Tech Docs: https://aka.ms/AKS-HCI-Docs 
Issues and Roadmap: https://github.com/azure/aks-hci 
Evaluate on Azure: https://aka.ms/AKS-HCI-EvalOnAzure 

Published on:

Learn more
Azure Stack Blog articles
Azure Stack Blog articles

Azure Stack Blog articles

Share post:

Related posts

Accelerate Your Growth: Azure Cosmos DB Partner Acceleration Program

Accelerate Your Growth: Azure Cosmos DB Partner Acceleration Program Unlock 360° Success with the Cosmos DB Engineering Team Are you ready to ...

16 hours ago

Transforming Field Operations with AI, Azure Maps & Dynamics 365

Efficient field operations are the backbone of successful, data-driven organizations. Yet, many businesses continue to struggle with scattered...

2 days ago

Failures Happen in Cloud, but how Azure Cosmos DB keeps your Applications Online

The only thing that’s constant in distributed systems is failures. No cloud platform is immune to failures — from regional outages and transie...

4 days ago

The `azd` extension to configure GitHub Copilot coding agent integration with Azure

This post shares how to set up the GitHub Copilot coding agent integration with Azure resources and services by using the Azure Developer CLI ...

4 days ago

Announcing Azure MCP Server 1.0.0 Stable Release – A New Era for Agentic Workflows

Today marks a major milestone for agentic development on Azure: the stable release of the Azure MCP Server 1.0! The post Announcing Azure MCP ...

6 days ago

From Backup to Discovery: Veeam’s Search Engine Powered by Azure Cosmos DB

This article was co-authored by Zack Rossman, Staff Software Engineer, Veeam; Ashlie Martinez, Staff Software Engineer, Veeam; and James Nguye...

6 days ago

Azure SDK Release (October 2025)

Azure SDK releases every month. In this post, you'll find this month's highlights and release notes. The post Azure SDK Release (October 2025)...

7 days ago

Microsoft Copilot (Microsoft 365): [Copilot Extensibility] No-Code Publishing for Azure AI Foundry Agents to Microsoft 365 Copilot Agent Store

Developers can now publish Azure AI Foundry Agents directly to the Microsoft 365 Copilot Agent Store with a simplified, no-code experience. Pr...

7 days ago

Azure Marketplace and AppSource: A Unified AI Apps and Agents Marketplace

The Microsoft AI Apps and Agents Marketplace is set to transform how businesses discover, purchase, and deploy AI-powered solutions. This new ...

10 days ago
Stay up to date with latest Microsoft Dynamics 365 and Power Platform news!
* Yes, I agree to the privacy policy