azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

AKS - Azure China missing 2020-03-01 in cli 2.3.1

Open xinlizhou opened this issue 6 years ago • 12 comments

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

xinlizhou avatar Apr 07 '20 05:04 xinlizhou

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/aks-pm.

ghost avatar Apr 07 '20 05:04 ghost

thanks for reporting, routing to appropriate team

yungezz avatar Apr 07 '20 05:04 yungezz

This is a known issue and is being investigated cc @feiskyer

jluk avatar Apr 07 '20 16:04 jluk

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

feiskyer avatar Apr 08 '20 09:04 feiskyer

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

andyzhangx avatar Apr 08 '20 09:04 andyzhangx

Thanks a lot@andyzhangx @feiskyer!

xinlizhou avatar Apr 09 '20 05:04 xinlizhou

Hi~ if I want to use azcli on Mac OS client, how can download the old version, 2.2.0 for example.

Icybiubiubiu avatar Apr 09 '20 14:04 Icybiubiubiu

@yonzhan do we have guides to install older versions for Windows and MacOS?

feiskyer avatar Apr 09 '20 14:04 feiskyer

@fengzhou-msft to provide guidance.

yonzhan avatar Apr 09 '20 22:04 yonzhan

For windows installation I found that this link would work: https://azurecliprod.azureedge.net/msi/azure-cli-2.2.0.msi

fjferdiez avatar Apr 10 '20 01:04 fjferdiez

thanks @yonzhan @fjferdiez for the guides.

feiskyer avatar Apr 10 '20 03:04 feiskyer

Please see the fix here: https://github.com/Azure/azure-cli/issues/13047

Jen7714 avatar May 29 '20 17:05 Jen7714