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

Created on 7 Apr 2020  路  12Comments  路  Source: Azure/azure-cli

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

AKS Service Attention

Most helpful comment

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

All 12 comments

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.

Was this page helpful?
0 / 5 - 0 ratings