No registered resource provider found for API version '2020-03-01' for type 'managedClusters'
Describe the bug
Command Name
az aks get-credentials
Errors:
No registered resource provider found for location 'chinaeast2' and API version '2020-03-01' 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'. The supported locations are 'chinaeast2, chinanorth2'.
To Reproduce
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
az aks get-credentials --resource-group {} --name {}
Expected behavior
Environment summary
Windows-10-10.0.18362
Python 3.8.2
Installer: MSI
azure-cli 2.3.1
Additional context
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/aks-pm.
thanks for reporting, routing to appropriate team
This is a known issue and is being investigated cc @feiskyer
@xinlizhou Could you use an older version (e.g. 2.2.0) of CLI as a mitigation? API version 2020-03-01 is not supported yet on AKS China.
try using an older version by running azure-cli container:
https://github.com/Azure/azure-cli#docker
e.g.
docker run -v ${HOME}:/root -v /usr/local/bin/:/kube -it mcr.microsoft.com/azure-cli:2.2.0
Thanks a lot@andyzhangx @feiskyer!
Hi~
if I want to use azcli on Mac OS client, how can download the old version, 2.2.0 for example.
@yonzhan do we have guides to install older versions for Windows and MacOS?
@fengzhou-msft to provide guidance.
For windows installation I found that this link would work:
https://azurecliprod.azureedge.net/msi/azure-cli-2.2.0.msi
thanks @yonzhan @fjferdiez for the guides.
Please see the fix here: https://github.com/Azure/azure-cli/issues/13047
Most helpful comment
For windows installation I found that this link would work:
https://azurecliprod.azureedge.net/msi/azure-cli-2.2.0.msi