diff --git a/azurerm/resource_arm_kubernetes_cluster.go b/azurerm/resource_arm_kubernetes_cluster.go index dea24930099c1..32ec066b74879 100644 --- a/azurerm/resource_arm_kubernetes_cluster.go +++ b/azurerm/resource_arm_kubernetes_cluster.go @@ -39,6 +39,11 @@ func resourceArmKubernetesCluster() *schema.Resource { Computed: true, }, + "fqdn": { + Type: schema.TypeString, + Computed: true, + }, + "kubernetes_version": { Type: schema.TypeString, Optional: true, @@ -95,11 +100,6 @@ func resourceArmKubernetesCluster() *schema.Resource { Computed: true, }, - "fqdn": { - Type: schema.TypeString, - Computed: true, - }, - "vm_size": { Type: schema.TypeString, Required: true, @@ -243,6 +243,7 @@ func resourceArmKubernetesClusterRead(d *schema.ResourceData, meta interface{}) } d.Set("resource_group_name", resGroup) d.Set("dns_prefix", resp.DNSPrefix) + d.Set("fqdn", resp.Fqdn) d.Set("kubernetes_version", resp.KubernetesVersion) linuxProfile := flattenAzureRmKubernetesClusterLinuxProfile(*resp.ManagedClusterProperties.LinuxProfile) @@ -318,10 +319,6 @@ func flattenAzureRmKubernetesClusterAgentPoolProfiles(profiles *[]containerservi agentPoolProfile["dns_prefix"] = *profile.DNSPrefix } - if profile.Fqdn != nil { - agentPoolProfile["fqdn"] = *profile.Fqdn - } - if profile.Name != nil { agentPoolProfile["name"] = *profile.Name }