Skip to content

Commit

Permalink
Force recreate on DNS prefix change of AKS cluster
Browse files Browse the repository at this point in the history
If you try to change the DNS prefix with the configuration before this
change, `terraform apply` will fail with a message to this effect.
  • Loading branch information
tomasaschan committed Jan 7, 2019
1 parent 73e868c commit a6051d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions azurerm/resource_arm_kubernetes_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ func resourceArmKubernetesCluster() *schema.Resource {
"dns_prefix": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
},

"kubernetes_version": {
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/kubernetes_cluster.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ The following arguments are supported:

* `agent_pool_profile` - (Required) One or more `agent_pool_profile` blocks as documented below.

* `dns_prefix` - (Required) DNS prefix specified when creating the managed cluster.
* `dns_prefix` - (Required) DNS prefix specified when creating the managed cluster. Changing this forces a new resource to be created.

* `service_principal` - (Required) A `service_principal` block as documented below.

Expand Down

0 comments on commit a6051d9

Please sign in to comment.