Open serbrech opened 4 years ago
tried to figure out where I could track this issue, but I'll wait for you to see this and point me in the right direction. A drawback of generated codebase, it's hard to figure things out ;)
Interesting! thanks for raising this
@stuartleeks I you have a good starter for 10 on this one?
Flagging stale issue. Actions will close this issue in the next 5 days unless action is taken.
Still need to look into this one. Things a bit hectic without childcare at the moment so behind on stuff.
So looks like this isn't directly related to the auto-gen code. Have a working theory I'm looking at.
Currently the ARMClient uses the Providers
API call to get back all the supported API versions. It then rather simplistically builds up a map of RP->Version
or if it can't adds Missing
as the API Version. My guess is something went wrong with populating the provider dictionary or a race occurred and the provider dictionary was still being populated while the delete was called.
Few things we could do better here:
Provider
dictionary has been completed before allowing calls. Had a quick test and with current version I can delete an aks
cluster successfully. This likely points to the race condition with the provider
call taking too long meaning the version lookup fails.
I first thought we have a bug in AKS for old clusters, but I could delete it just fine in the portal or CLI.
I think you're just not including an api-version in the delete command for some reason.