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--