-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Changing SKU Tier from paid to standard for azurerm_kubernetes_cluster fails #20887
Comments
@Mahagon I saw a similar error when testing |
Not sure if i read it wrong, but i guess "Currently in Operation" means it's released right? Our AKS is deployed in "Germany West Central" and the "Currently in Operation" version is v20230226. Still getting the same error |
@Mahagon it should do. I've not tried this since the version rolled out in our regions but based on it still being broken for you on the latest version I think there might be a provider bug. |
Ran into this issue today as well, so it is definitely a provider problem. |
I spoke to some of the AKS team today and they confirmed that the API version would be globally available before it was published and usable, I was confusing the AKS release versions which are also date based. So this is a provider issue. |
Hello, I just received an email from Azure with respect to the changes to AKS SKU name and tiers (relevant snippet below). I'm just doing a wild assumption here, but could it be that the error is caused by the fact that the provider is hardcoding the Provider: internal/services/containers/kubernetes_cluster_resource.go#L1433 terraform-provider-azurerm/internal/services/containers/kubernetes_cluster_resource.go Line 1433 in 56bf26c
SDK: resource-manager/containerservice/2023-01-02-preview/managedclusters/constants.go#L536 Azure emailManagedClusterSKU parameter changes in Azure API versions
Recommended actionTo avoid disrupting your AKS workloads, update any automated scripts, CD pipelines, ARM templates, Terraform, or other third-party tooling that relies on the |
The easiest fix for this would be if the provider can update this field in a state on the next plan, instead of requesting a cluster SKU upgrade (imo). |
@lonegunmanb @jiaweitao001 please be aware of this issue. An email has been sent to AKS customers today about this issue. |
I'd like to submit a pr to solve this issue by doing following changes:
In general, we should submit a separate pr to upgrade sdk, but in this case we must update the existing state and all corresponding logic with new API. Should we postpone such changes to v4.0? Or we can chose plan b:
WDYT @stephybun ? |
it seems even azurerm 3.50.0 is still using managedcluster API version 2023-01-02-preview so it doesn't support SKU name Base yet. just use "Paid" sku tier for now until newer azurerm using managedcluster API version v2023-02-01 or higher |
This functionality has been released in v3.51.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Is there an existing issue for this?
Community Note
Terraform Version
1.4.0
AzureRM Provider Version
3.47.0
Affected Resource(s)/Data Source(s)
azurerm_kubernetes_cluster
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Changing the value in the terraformstate fromPaid to Standard
Actual Behaviour
Azure returns an error message, that Paid has been replaced by Standard
Steps to Reproduce
Important Factoids
No response
References
#20734 sku_tier standard was introduced in azurerm v3.46.0
The text was updated successfully, but these errors were encountered: