Azure RKE2 hardcoded default region is not available in the Azure Gov enviornment
As this is RKE2 the relevant code is in rancher/dashboard. In rke2 the region options are not hardcoded, they're fetched from /v1/meta/aksLocations ...assuming the list we get from that request is accurate when using azure gov credentials, the ui fix would require us to update the hardcoded default region here and hardcoded default node pool configuration here to use a location returned from the api call here
Originally posted by @mantis-toboggan-md in https://github.com/rancher/rancher/issues/43024#issuecomment-1747274142
Internal reference: SURE-5437 Blocks https://github.com/rancher/aks-operator/issues/98
We should use azure gov credentials to verify but this looks to be fixed by https://github.com/rancher/dashboard/pull/10083, repro steps for that PR use azure china but the underlying issue is the same: the default hardcoded region isn't available with those credentials.
I confirmed that this is covered by https://github.com/rancher/dashboard/pull/10083.
/backport v2.8.next1
Added possible automation-candidate IF we can mock the requests needed in order to load the machine-config for an Azure RKE2 cluster and check if default region is set. We might need to mock "cloud creds" reply, if possible. To be evaluated
Do I need access to the gov environment to validate this issue?
@IsaSih I believe only US citizens would be able to do this? cc @yonasberhe23 @gaktive
That's right @izaac - to work on this one I coordinated with the Rancher Government team
Looking over the related backend ticket, part of this was already tested by someone with the appropriate access: https://github.com/rancher/rancher/issues/43024#issuecomment-1997789020 so UI QA could try talking with @atoy3731 for help but this likely could be marked as done.
@atoy3731 confirmed offline that he tested this issue, so closing as complete