Azure Retirement: Azure Kubernetes Service 2022-11-02-preview API end of life is 20 June 2024

VENKAT THARUN D A 0 Reputation points
2024-06-09T20:36:14.0533333+00:00

I have received this notice earlier.

How i am suppose to see which API CLI is using?

The query provided in notification is not working.

API_VERSION=2022-04-01-preview

az monitor activity-log list --offset 30d --max-events 10000 --namespace microsoft.containerservice --query "[?eventName.value == 'EndRequest' && contains(not_null(httpRequest.uri,''), '${API_VERSION}')]"

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,943 questions
{count} votes

2 answers

Sort by: Most helpful
  1. hossein jalilian 4,615 Reputation points
    2024-06-09T21:48:35.29+00:00

    Thanks for posting your question in the Microsoft Q&A forum.

    To check which AKS API version your Azure CLI is using, you can run the following command:

    az aks show --resource-group <resource-group-name> --name <cluster-name> --query "aksResourceMetadata.version"
    

    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful

    1 person found this answer helpful.

  2. Anveshreddy Nimmala 3,290 Reputation points Microsoft Vendor
    2024-06-11T06:38:58.91+00:00

    Hello Venkat Tharun D A

    I have tried this in my lab..

    az aks show --resource-group <resource-group-name> --name <cluster-name> --debug

    In the debug output, you will have HTTP request details. These details typically include the full URL being requested.

    The URL includes a query parameter like api-version=2022-04-01-preview which indicates the API version being used.

    User's image Hope this helps you. if it helps you would you be so kind to re-evaluate your feedback, accept my answer and upvote the same please

    049534c2-b803-423e-bfca-84d43fae845c