diff --git a/quickstart/201-k8s-cluster-with-tf-and-aks/readme.md b/quickstart/201-k8s-cluster-with-tf-and-aks/readme.md index dbf94824..f4a7ceeb 100644 --- a/quickstart/201-k8s-cluster-with-tf-and-aks/readme.md +++ b/quickstart/201-k8s-cluster-with-tf-and-aks/readme.md @@ -25,8 +25,8 @@ This template provisions an [AKS / Azure Kubernetes service (also known as a Man | `resource_group_name_prefix` | Prefix of the resource group name that's combined with a random ID so name is unique in your Azure subscription. | rg | | `resource_group_location` | Location of the resource group. | eastus | | `node_count` | Initial number of nodes which should exist in this Node Pool. Value must be between 1 and 1000. | 3 | -| `log_analytics_workspace_location` | Location of the log analytics workspace. | eastus | -| `log_analytics_workspace_sku` | SKU of the Log Analytics Workspace. | PerGB2018 | +| `log_analytics_workspace_location` | Location of the Log Analytics workspace. | eastus | +| `log_analytics_workspace_sku` | SKU of the Log Analytics workspace. The SKU of the log analytics workspace. Choose from: Free, PerNode, Premium, Standard, Standalone, Unlimited, CapacityReservation, PerGB2018 | PerGB2018 | ## Example diff --git a/quickstart/201-k8s-cluster-with-tf-and-aks/variables.tf b/quickstart/201-k8s-cluster-with-tf-and-aks/variables.tf index 6093806b..47046edf 100644 --- a/quickstart/201-k8s-cluster-with-tf-and-aks/variables.tf +++ b/quickstart/201-k8s-cluster-with-tf-and-aks/variables.tf @@ -21,15 +21,20 @@ variable "node_count" { variable "log_analytics_workspace_location" { type = string default = "eastus" - description = "Location of the log analytics workspace." + description = "Location of the Log Analytics workspace." } # For Log Analytics pricing, refer to: # https://azure.microsoft.com/pricing/details/monitor variable "log_analytics_workspace_sku" { type = string - description = "" + description = "The SKU of the Log Analytics workspace. Choose from: Free, PerNode, Premium, Standard, Standalone, Unlimited, CapacityReservation, PerGB2018" default = "PerGB2018" + + validation { + condition = contains(["Free", "PerNode", "Premium", "Standard", "Standalone", "Unlimited", "CapacityReservation", "PerGB2018"], var.log_analytics_workspace_sku) + error_message = "The Log Analytics workspace SKU must be one of the following: Free, PerNode, Premium, Standard, Standalone, Unlimited, CapacityReservation, PerGB2018" + } } variable "msi_id" {