From 936acfb96116958df4fe99a6bf838725b7b4c4e3 Mon Sep 17 00:00:00 2001 From: Neha Arora Date: Fri, 12 Sep 2025 15:01:48 -0700 Subject: [PATCH 1/2] [AKS] az aks create: Fix minor issue with --enable-azure-container-storage --- .../command_modules/acs/azurecontainerstorage/_validators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/acs/azurecontainerstorage/_validators.py b/src/azure-cli/azure/cli/command_modules/acs/azurecontainerstorage/_validators.py index 7b2d434b9e5..ed3774581d4 100644 --- a/src/azure-cli/azure/cli/command_modules/acs/azurecontainerstorage/_validators.py +++ b/src/azure-cli/azure/cli/command_modules/acs/azurecontainerstorage/_validators.py @@ -661,7 +661,7 @@ def _validate_nodepools( # pylint: disable=too-many-branches,too-many-locals 'and retry the Azure Container Storage operation.' ) vm_size = agentpool.get("vm_size") - if vm_size is not None: + if vm_size is not None and vm_size != "": cpu_value, nvme_enabled = get_vm_sku_details(vm_size.lower()) if cpu_value is None or nvme_enabled is None: raise UnknownError( From 8a942fe5e32dd52881304f736fc134b572b05d58 Mon Sep 17 00:00:00 2001 From: Neha Arora Date: Mon, 15 Sep 2025 20:12:23 -0700 Subject: [PATCH 2/2] Minor formatting changes --- .../azure/cli/command_modules/acs/managed_cluster_decorator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/acs/managed_cluster_decorator.py b/src/azure-cli/azure/cli/command_modules/acs/managed_cluster_decorator.py index 3cf9e588d35..c3d4ddd01e7 100644 --- a/src/azure-cli/azure/cli/command_modules/acs/managed_cluster_decorator.py +++ b/src/azure-cli/azure/cli/command_modules/acs/managed_cluster_decorator.py @@ -8825,7 +8825,7 @@ def update_azure_container_storage(self, mc: ManagedCluster) -> ManagedCluster: except Exception as ex: raise UnknownError( f"An error occurred while checking the version of Azure Container Storage" - f"extension installed on the cluster: {str(ex)}" + f" extension installed on the cluster: {str(ex)}" ) from ex disable_azure_container_storage_v1 = disable_azure_container_storage_param is not None and is_container_storage_v1_extension_installed