问题描述
昨晚,我使用PowerShell在AKS上部署Kubernetes集群,如下所示:
New-AzureRmAks -ResourceGroupName "my-rg" -Name "my-aks-cluster" -Kubernetesversion "1.16.13" -NodeCount 2 -NodeVmSize "Standard_DS2_V2" -Verbose
这很好。但是,今天,我在不同的订阅中尝试了同样的事情,但始终收到以下错误:
VERBOSE: Cluster does not exist.
VERBOSE: Cluster is new.
VERBOSE: Performing the operation "Creating a managed Kubernetes cluster." on target "my-aks-cluster in my-rg".
VERBOSE: Preparing for deployment of your managed Kubernetes cluster.
VERBOSE: Using location eastus from the resource group my-rg.
VERBOSE: Using DNS name prefix my-aks-cluster-my-rg-dcdf2a.
VERBOSE: Fetching SSH public key from file C:\Users\myuser\.ssh\id_rsa.pub
New-AzureRmAks : The given key was not present in the dictionary.
At line:1 char:1
+ New-AzureRmAks -ResourceGroupName "my-reg" -Name "my-aks-cluster" -Kube ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [New-AzureRmAks],KeyNotFoundException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.Aks.NewAzureRmAks
我很困惑,因为:
任何人都知道这里发生了什么吗?任何提示表示赞赏。