{"action":"created","issue":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/issues/879","repository_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm","labels_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/issues/879/labels{/name}","comments_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/issues/879/comments","events_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/issues/879/events","html_url":"https://github.com/terraform-providers/terraform-provider-azurerm/issues/879","id":299580709,"number":879,"title":"azurerm_kubernetes_cluster Creates Resources with Incorrect Resource Group Name","user":{"login":"krikork","id":11936077,"avatar_url":"https://avatars3.githubusercontent.com/u/11936077?v=4","gravatar_id":"","url":"https://api.github.com/users/krikork","html_url":"https://github.com/krikork","followers_url":"https://api.github.com/users/krikork/followers","following_url":"https://api.github.com/users/krikork/following{/other_user}","gists_url":"https://api.github.com/users/krikork/gists{/gist_id}","starred_url":"https://api.github.com/users/krikork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krikork/subscriptions","organizations_url":"https://api.github.com/users/krikork/orgs","repos_url":"https://api.github.com/users/krikork/repos","events_url":"https://api.github.com/users/krikork/events{/privacy}","received_events_url":"https://api.github.com/users/krikork/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-23T02:41:20Z","updated_at":"2018-02-23T15:38:10Z","closed_at":null,"author_association":"NONE","body":"Creating an azurerm_kubernetes_cluster in Terraform provisions a number of resources but most of them disobey the value provided in field resource_group_name.\r\n\r\nMy tf file looks like this: \r\nresource \"azurerm_kubernetes_cluster\" \"container_service\" {\r\n  name                   = \"${var.container_service_name}\"\r\n  location               = \"${var.resource_group_location}\"\r\n  resource_group_name    = \"${var.resource_group_name}\"\r\n  kubernetes_version     = \"1.8.2\"\r\n  dns_prefix             = \"${var.dns_name_prefix}\"\r\n...\r\n\r\nWhere var.resource_group_name is \"k8s\".\r\n\r\nThe result is that resources get created in Azure but most of them get a resource group name of \"MC_k8s_k8s-containerservice_eastus\" instead of the expected \"k8s\". Only the Container service resource has the expected resource group name of \"k8s\".\r\n\r\nThis causes a problem if someone wants to locate the resources for further configuration.\r\n"},"comment":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/issues/comments/368043698","html_url":"https://github.com/terraform-providers/terraform-provider-azurerm/issues/879#issuecomment-368043698","issue_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/issues/879","id":368043698,"user":{"login":"Stavrus","id":1096109,"avatar_url":"https://avatars2.githubusercontent.com/u/1096109?v=4","gravatar_id":"","url":"https://api.github.com/users/Stavrus","html_url":"https://github.com/Stavrus","followers_url":"https://api.github.com/users/Stavrus/followers","following_url":"https://api.github.com/users/Stavrus/following{/other_user}","gists_url":"https://api.github.com/users/Stavrus/gists{/gist_id}","starred_url":"https://api.github.com/users/Stavrus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stavrus/subscriptions","organizations_url":"https://api.github.com/users/Stavrus/orgs","repos_url":"https://api.github.com/users/Stavrus/repos","events_url":"https://api.github.com/users/Stavrus/events{/privacy}","received_events_url":"https://api.github.com/users/Stavrus/received_events","type":"User","site_admin":false},"created_at":"2018-02-23T15:38:10Z","updated_at":"2018-02-23T15:38:10Z","author_association":"NONE","body":"I came across this as well, but it's not an issue with the Terraform provider. See https://github.com/Azure/AKS/issues/3"}}
{"actor":{"display_login":"Stavrus"}}