Skip to content

Commit

Permalink
Working on edge zone name
Browse files Browse the repository at this point in the history
  • Loading branch information
TomArcherMsft committed Jul 11, 2024
1 parent 6481211 commit b93322a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
9 changes: 2 additions & 7 deletions quickstart/101-aks-edge-zone/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,12 @@ resource "random_string" "aks_cluster_name" {
special = false
}

resource "random_string" "edge_zone_name" {
length = 12
special = false
}

resource "azurerm_kubernetes_cluster" "aks_cluster" {
name = random_string.aks_cluster_name.result
location = azurerm_resource_group.rg.location
resource_group_name = azurerm_resource_group.rg.name
dns_prefix = "myakscluster"
edge_zone = random_string.edge_zone_name.result
dns_prefix = "myakscluster"
edge_zone = var.edge_zone

default_node_pool {
name = "default"
Expand Down
8 changes: 7 additions & 1 deletion quickstart/101-aks-edge-zone/variables.tf
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
variable "resource_group_location" {
type = string
default = "eastus"
default = "westus"
description = "Location of the resource group."
}

variable "resource_group_name_prefix" {
type = string
default = "rg"
description = "Prefix of the resource group name that's combined with a random ID so name is unique in your Azure subscription."
}

variable "edge_zone" {
type = string
default = ""
description = "Name of the edge zone."
}

0 comments on commit b93322a

Please sign in to comment.