creating Cluster: (Managed Cluster Name "akscluster0132" / Resource Group "aksrg"): containerservice.ManagedClustersClient#CreateOrUpdate: Failure sending request: StatusCode=400
— Original Error: Code="NoRegisteredProviderFound" Message="No registered resource provider found for location ‘australiasoutheast’ and API version ‘2022-01-02-preview’ for type ‘managedClusters’. The supported api-versions are ‘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
getting this error. I have registered all the required resource providers and changed the vm size as well
I have tried deploying aks in azure using terraform. But getting the error. how to overcome this issue?
2
Answers
You should be using the supported API versions instead of the one you are currently using: API version ‘2022-01-02-preview’
The error means that either the Azure Resource Provider for AKS is not registered in your subscription for the location (
australiasoutheast
) you selected, or the region does not support the API version (2022-01-02-preview
) you’re using.It appears that
2022-01-02-preview
is not a supported API version, according to the error message. You may be using an AzureRM Terraform provider or an Azure SDK that uses an API version that is not available in your chosen region. Make sure that the Azure Kubernetes Service (AKS) version you want to deploy matches the supported API versions in theaustraliasoutheast
region.Once recheck the registration status of the
Microsoft.ContainerService
resource provider.You have selected
australiasoutheast
as your region, but some features or the preview API version of AKS may not be supported there. If your project permits, you can try a different region where the feature set you require is fully available.How ever I tried using the same region with updated provider and I was able to provision the requirement.
My Terraform configuration:
Deployment Succeeded: