From 33d73bad331409fb99bafb5989d9fe21a7368151 Mon Sep 17 00:00:00 2001 From: Enda Kelly <80516065+endakelly@users.noreply.github.com> Date: Thu, 19 Dec 2024 14:17:24 +0000 Subject: [PATCH] re-add preview registration --- components/aks/aks.tf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/aks/aks.tf b/components/aks/aks.tf index ed4a8989..7d02c12e 100644 --- a/components/aks/aks.tf +++ b/components/aks/aks.tf @@ -174,3 +174,9 @@ resource "azurerm_role_assignment" "dev_to_stg" { principal_id = module.kubernetes[each.key].kubelet_object_id scope = data.azurerm_resource_group.mi_stg_rg[0].id } + +resource "null_resource" "register_automatic_sku_preview" { + triggers = { + cluster_creation = "${var.cluster_automatic ? 1 : 0}" + } +}