You're receiving this message because you currently use the 2022-01-02-preview API of Azure Kubernetes Service (AKS).

Igor Malkov 20 Reputation points
2023-05-07T11:53:06.7633333+00:00

Hi,
I have received an email message from Microsoft:
You're receiving this message because you currently use the 2022-01-02-preview API of Azure Kubernetes Service (AKS).
To avoid errors from the retired API, please move to a newer version of the AKS API.
Redirects to page
https://learn.microsoft.com/en-us/azure/templates/microsoft.containerservice/allversions
Microsoft.ContainerService (AKS) resource types

Our AKS was created and managed by Terraform.
Questions:
How to upgrade?
How to determine ContainerService the need to upgrade?

Thank you.

Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,935 questions
0 comments No comments
{count} votes

Accepted answer
  1. Ammar-Abdelqader01 1,006 Reputation points Microsoft Employee
    2023-05-07T12:29:23.6966667+00:00

    Hello @Igor Malkov

    This doesn’t impact any existing clusters, it’s purely an API level deprecation. It basically boils down to “don’t use old versions of tools such as az cli, terraform, SDKs, etc”

     

    The actual exact mappings for Terraform provider version to API version are here: https://learn.microsoft.com/en-us/azure/developer/terraform/provider-version-history-azurerm

    Search for “containerservice”, specifically entries like this one: “dependencies: updating containerservice/2022-09-02-preview to 2023-01-02-preview (#20734)”

     

    • Customer would like to know which Terraform AzureRM use 2022-01-02-preview API?

    It looks like 2.99 uses 2022-01-02-preview, see here: https://learn.microsoft.com/en-us/azure/developer/terraform/provider-version-history-azurerm#2990-march-11-2022

     

    You can go through the Terraform documentation to figure out which versions have AKS API updates, but I’ve done it for you and ideally you want to move to at least 3.29: https://learn.microsoft.com/en-us/azure/developer/terraform/provider-version-history-azurerm#3290-october-27-2022

     

     I would strongly recommend you move to the latest Terraform version though..

    If this has been helpful, please take a moment to accept answers as this helps increase visibility of this question for other members of the Microsoft Q&A community. Thank you for helping to improve Microsoft Q&A!

    If this has been helpful, please take a moment to accept answers as this helps increase visibility of this question for other members of the Microsoft Q&A community. Thank you for helping to improve Microsoft Q&A!

    User's image

    4 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Andrii Kobyliuk 0 Reputation points
    2023-05-08T07:54:15.05+00:00

    Hello @Ammar-Abdelqader01 !

    What about the az-cli command and other SDKs? Where can I find the supported versions to which I should migrate?