Hi cloud D,
Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.
I have reproduced and tried to Deploy an AKS cluster with Confidential Containers and a default policy to an existing cluster. I have got the same error message.
Upon investigation, I have found that the error occurred because of a subtle issue with the --cluster-name
flag. When copying from some web sources, special characters like "long dashes" (–
) are used instead of regular hyphens (-
). These are not recognized by the az
CLI, leading to the error.
After editing the command by replacing the long dashes (–
) with standard hyphens (-
).
az aks nodepool add --resource-group myResourceGroup --name nodepool2 --cluster-name myAKSCluster --node-count 2 --os-sku AzureLinux --node-vm-size Standard_DC4as_cc_v5 --workload-runtime KataCcIsolation
I was able to deploy to an exixsting AKS Cluster.
Hope this helps!
Let me know if you have any further queries!
If the comment is helpful, please "upvote" or tag me in the comments.