Failed to get list of supported orchestrators Error in Azure Container Services - List Orchestrators

Sagar Dange 26 Reputation points
2022-07-19T07:59:17.997+00:00

Hi Team,

I am using the below API to get the AKE Kubernetes versions list.

https://learn.microsoft.com/en-us/rest/api/aks/container-services/list-orchestrators?tabs=HTTP

GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/orchestrators?api-version=2019-08-01

But when I am calling this API to get the details I am getting the below error.

{
"code": "InternalOperationError",
"message": "Failed to get list of supported orchestrators"
}

Please help me to resolve this error.

Azure Kubernetes Service
Azure Kubernetes Service
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,456 questions
{count} vote

Accepted answer
  1. Prrudram-MSFT 28,281 Reputation points Moderator
    2022-07-29T10:31:10.313+00:00

    Hello @Sagar Dange and @Asad Mirza ,

    Thank you for posting your issue on Microsoft Q&A platform. I have tested this again with option parameters and able to fetch the results. Add '&resource-type=managedClusters' to your url and it will work

    priyanka@Azure:~$ export TOKEN=$(az account get-access-token --query 'accessToken' -o tsv)
    priyanka@Azure:~$ curl -H "Authorization: Bearer $TOKEN" "https://management.azure.com/subscriptions/bxx1ed3-xxxx-44fb-b5ba-2bxxxxxxx23f/providers/Microsoft.ContainerService/locations/eastus/orchestrators?api-version=2019-08-01&resource-type=managedClusters"
    {
    "id": "/subscriptions/bxx1ed3-xxxx-44fb-b5ba-2bxxxxxxx23f/providers/Microsoft.ContainerService/locations/eastus/orchestrators",
    "name": "default",
    "type": "Microsoft.ContainerService/locations/orchestrators",
    "properties": {
    "orchestrators": [
    {
    "orchestratorType": "Kubernetes",
    "orchestratorVersion": "1.21.9",
    "upgrades": [
    {
    "orchestratorType": "Kubernetes",
    "orchestratorVersion": "1.21.14"
    },
    {
    "orchestratorType": "Kubernetes",
    "orchestratorVersion": "1.22.6"
    },
    {
    "orchestratorType": "Kubernetes",
    "orchestratorVersion": "1.22.11"
    }
    ]
    },
    {
    "orchestratorType": "Kubernetes",
    "orchestratorVersion": "1.21.14",
    "upgrades": [
    {
    "orchestratorType": "Kubernetes",
    "orchestratorVersion": "1.22.6"
    },
    {
    "orchestratorType": "Kubernetes",
    "orchestratorVersion": "1.22.11"
    }
    ]
    },
    {
    "orchestratorType": "Kubernetes",
    "orchestratorVersion": "1.22.6",
    "upgrades": [
    {
    "orchestratorType": "Kubernetes",
    "orchestratorVersion": "1.22.11"
    },
    {
    "orchestratorType": "Kubernetes",
    "orchestratorVersion": "1.23.5"
    },
    {
    "orchestratorType": "Kubernetes",
    "orchestratorVersion": "1.23.8"
    }
    ]
    },
    {
    "orchestratorType": "Kubernetes",
    "orchestratorVersion": "1.22.11",
    "default": true,
    "upgrades": [
    {
    "orchestratorType": "Kubernetes",
    "orchestratorVersion": "1.23.5"
    },
    {
    "orchestratorType": "Kubernetes",
    "orchestratorVersion": "1.23.8"
    }
    ]
    },
    {
    "orchestratorType": "Kubernetes",
    "orchestratorVersion": "1.23.5",
    "upgrades": [
    {
    "orchestratorType": "Kubernetes",
    "orchestratorVersion": "1.23.8"
    },
    {
    "orchestratorType": "Kubernetes",
    "orchestratorVersion": "1.24.0",
    "isPreview": true
    }
    ]
    },
    {
    "orchestratorType": "Kubernetes",
    "orchestratorVersion": "1.23.8",
    "upgrades": [
    {
    "orchestratorType": "Kubernetes",
    "orchestratorVersion": "1.24.0",
    "isPreview": true
    }
    ]
    },
    {
    "orchestratorType": "Kubernetes",
    "orchestratorVersion": "1.24.0",
    "isPreview": true
    }
    ]
    }
    }priyanka@Azure:~$

    **Possible causes: **
    The api requires a location because different versions may be available in them (when new versions are rolled out it can take up to a week between the first regions that get it and the last ones, resource-type is the actual object within the RP "Microsoft.ContainerService".

    This below link needs updating. I have notified the docs team already. For now, use the above approach, which will be of your help.
    https://learn.microsoft.com/en-us/rest/api/aks/container-services/list-orchestrators?tabs=HTTP

    --please don't forget to upvote and accept as answer if the reply is helpful--

    2 people found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.