-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unsupported API version '2020-04-01' for Network Resource. MS is fixing it. #13827
Comments
sudo apt remove azure-cli This fixed the issue, looks like a regression in CLI v2.7.0 ... |
Not just CLI, the portal also fails a lot of types of requests with the same error reason. |
I am also having issues with deploying network type resources in any region at the moment. This is not just an issue with the CLI. Posting this here is because I can't find any official page where this issue is discussed or mentioned. |
Same issue here: Failed to add peering 'xxx'. Error: No registered resource provider found for location 'westeurope' and API version '2020-04-01' for type 'virtualNetworks'. The supported api-versions are '2014-12-01-preview, 2015-05-01-preview, 2015-06-15, 2016-03-30, 2016-06-01, 2016-07-01, 2016-08-01, 2016-09-01, 2016-10-01, 2016-11-01, 2016-12-01, 2017-03-01, 2017-04-01, 2017-06-01, 2017-08-01, 2017-09-01, 2017-10-01, 2017-11-01, 2018-01-01, 2018-02-01, 2018-03-01, 2018-04-01, 2018-05-01, 2018-06-01, 2018-07-01, 2018-08-01, 2018-10-01, 2018-11-01, 2018-12-01, 2019-02-01, 2019-04-01, 2019-06-01, 2019-07-01, 2019-08-01, 2019-09-01, 2019-11-01, 2019-12-01, 2020-01-01, 2020-03-01'. The supported locations are 'westus, eastus, northeurope, westeurope, eastasia, southeastasia, northcentralus, southcentralus, centralus, eastus2, japaneast, japanwest, brazilsouth, australiaeast, australiasoutheast, centralindia, southindia, westindia, canadacentral, canadaeast, westcentralus, westus2, ukwest, uksouth, koreacentral, koreasouth, francecentral, australiacentral, southafricanorth, uaenorth'.. |
Is anybody able to find any official mention of this underlying issue? |
Have this issue. If you look at the supported api version the new one is not in the list. 2020-03-01 No 2020-04-01 Fix is to run an older version of az-cli |
@mortenlerudjordet, but if you try to just deploy a simple virtual machine in the Azure Portal, then that fails as well 😄 EDIT: The error message one gets:
|
You can either use an older version of az-cli or fix the api version manually in the rest request. Let's hope MS fix this soon |
+1 when I try to recover an |
Here are some potentially useful links about this:
|
add to S171 |
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @aznetsuppgithub. |
@ezYakaEagle442 Thanks for bring this issue to us. I believe service team and ARM team are actively fixing it. I'm sorry I changed your issue's title so that I can pin this issue. |
I have the same issue with publicIPAddresses. When can we expect a fix and is there a workaround? |
same here with PIP! Hope there will be a solution soon... |
I believe this issue should be fixed soon. A workaround is to use old version of Azure CLI. Please uninstall the 2.7.0 and install any older version. It uses 2020-03-01 api-version or before which are not affected. |
Where can I find a MSI file for version 2.6.0? How do I install an older version? It's not described in the documentation. |
For Windows, please use this script in powershell to install previous version such as 2.6.0.
You can also download other older versions through
Sorry for the inconvenience. |
I get the same error: Should I use 2.6.0 specifically ? Error I get: msrestazure.azure_exceptions.CloudError: Azure Error: NoRegisteredProviderFound |
2.4.0 should not have this issue. 2020-04-01 appears in 2.7.0 first time. Did you install multiple azure-cli in your machine? Could you confirm whether you removed 2.7.0 or not? |
The latest update for this issue is on this page. https://status.azure.com/en-us/status |
Thanks for the help @myronfanqiu , I am trying to figure out if there is a way I can specify an older version with this command for Ubuntu and Debian |
Hi. Installation method for old version in any platform can be found from here |
I'm using CLI 2.6.0 now. It works better, but still getting weird errors. Hopefully this will be gone when the Azure ARM issue is being resolved.... For reference though: request failed: Error occurred in request., RetryError: HTTPSConnectionPool(host='management.azure.com', port=443): Max retries exceeded with url: /subscriptions//providers/Microsoft.Network/locations/westeurope/operations/?api-version=2020-03-01 (Caused by ResponseError('too many 502 error responses',)) |
Microsoft has fixed the problem on Azure backend side. For me az cli 2.7.0 (on Ubuntu 20.04) seems to work again!
|
Describe the bug
CLI 2.7.0 fails to run command az network vnet show
To Reproduce
Expected behavior
az network vnet show command should run successfully
Environment summary
az version
{
"azure-cli": "2.7.0",
"azure-cli-command-modules-nspkg": "2.0.3",
"azure-cli-core": "2.7.0",
"azure-cli-nspkg": "3.0.4",
"azure-cli-telemetry": "1.0.4",
"extensions": {}
}
Additional context
The text was updated successfully, but these errors were encountered: