在 Azure 中使用 terraform 部署 Aks 时出现问题

问题描述 投票:0回答:1

创建集群:(托管集群名称“akscluster0132”/资源组“aksrg”):containerservice.ManagedClustersClient#CreateOrUpdate:发送请求失败:StatusCode=400 -- 原始错误:Code="NoRegisteredProviderFound" Message="未找到位置 'australiasoutheast' 的注册资源提供程序和类型 'managedClusters' 的 API 版本 '2022-01-02-preview'。支持的 api 版本为 '2017- 08-31, 2018-03-31, 2019-02-01, 2019-04-01, 2019-06-01, 2019-08-01, 2019-10-01, 2019-11-01, 2020-01- 01, 2020-02-01, 2020-03-01, 2020-04-01, 20

出现此错误。我已经注册了所有必需的资源提供程序并更改了虚拟机大小

我尝试使用 terraform 在 azure 中部署 aks。但出现错误。如何克服这个问题?

resources azure-aks terraform-provider-azure
1个回答
0
投票

您应该使用受支持的 API 版本,而不是您当前使用的版本:API 版本“2022-01-02-preview”

© www.soinside.com 2019 - 2024. All rights reserved.