Skip to content
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

Paid sku replaced with Standard #345

Closed
1 task done
wyattfry opened this issue Apr 7, 2023 · 1 comment
Closed
1 task done

Paid sku replaced with Standard #345

wyattfry opened this issue Apr 7, 2023 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@wyattfry
Copy link

wyattfry commented Apr 7, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Greenfield/Brownfield provisioning

greenfield

Terraform Version

1.4.4

Module Version

6.8.0

AzureRM Provider Version

3.49.0

Affected Resource(s)/Data Source(s)

azurerm_kubernetes_cluster

Terraform Configuration Files

module "aks" {
  source                            = "Azure/aks/azurerm"
  version                           = "6.8.0"
  prefix                            = "foo"
  resource_group_name               = "rg"
  sku_tier                          = "Standard"
}

tfvars variables values

--

Debug Output/Panic Output

│ Managed Cluster Name: "foo"): managedclusters.ManagedClustersClient#CreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: Code="SkuNotAvailable" Message="Standard managed cluster SKU tier is invalid. 'Paid' has been replaced by 'Standard' since v2023-02-01. "
│ 
│   with module.aks.azurerm_kubernetes_cluster.main,
│   on .terraform/modules/aks/main.tf line 17, in resource "azurerm_kubernetes_cluster" "main":
│   17: resource "azurerm_kubernetes_cluster" "main" {

Expected Behaviour

apply succeed

Actual Behaviour

apply fails

Steps to Reproduce

terraform apply

Important Factoids

No response

References

https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/kubernetes_cluster#:~:text=to%20Free.-,Note%3A,where%20the%20value%20Paid%20must%20now%20be%20set%20to%20Standard.,-storage_profile%20%2D%20(Optional)%20A

@wyattfry wyattfry added the bug Something isn't working label Apr 7, 2023
@lonegunmanb
Copy link
Member

This issue was caused by the breaking change introduced since AzureRM provider v3.51.0. We'll add a validation (which is also a breaking change) in this module's v7.0.0.

All this module's users should:

  1. pin your azurerm provider's version to < v3.51.0.
  2. or change sku_tier from Paid to Standard.

@lonegunmanb lonegunmanb added this to the 7.0.0 milestone Apr 10, 2023
zioproto added a commit to zioproto/istio-aks-example that referenced this issue Apr 14, 2023
AzureRM provider v3.51.0 introduced a Breaking Change. Changing Paid to Standard

Azure/terraform-azurerm-aks#345
hashicorp/terraform-provider-azurerm#21256
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants