{"action":"closed","issue":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/issues/655","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/655/labels{/name}","comments_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/issues/655/comments","events_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/issues/655/events","html_url":"https://github.com/terraform-providers/terraform-provider-azurerm/issues/655","id":285258710,"number":655,"title":"Azure keyvault gets created but secret creation doesnt wait for availability, and crashes","user":{"login":"pixelicous","id":4767242,"avatar_url":"https://avatars0.githubusercontent.com/u/4767242?v=4","gravatar_id":"","url":"https://api.github.com/users/pixelicous","html_url":"https://github.com/pixelicous","followers_url":"https://api.github.com/users/pixelicous/followers","following_url":"https://api.github.com/users/pixelicous/following{/other_user}","gists_url":"https://api.github.com/users/pixelicous/gists{/gist_id}","starred_url":"https://api.github.com/users/pixelicous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pixelicous/subscriptions","organizations_url":"https://api.github.com/users/pixelicous/orgs","repos_url":"https://api.github.com/users/pixelicous/repos","events_url":"https://api.github.com/users/pixelicous/events{/privacy}","received_events_url":"https://api.github.com/users/pixelicous/received_events","type":"User","site_admin":false},"labels":[{"id":716998493,"url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/labels/M1","name":"M1","color":"ffaa32","default":false},{"id":620326271,"url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/labels/bug","name":"bug","color":"f7c6c7","default":true},{"id":717227637,"url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/labels/service/keyvault","name":"service/keyvault","color":"efb4aa","default":false}],"state":"closed","locked":false,"assignee":{"login":"tombuildsstuff","id":666005,"avatar_url":"https://avatars1.githubusercontent.com/u/666005?v=4","gravatar_id":"","url":"https://api.github.com/users/tombuildsstuff","html_url":"https://github.com/tombuildsstuff","followers_url":"https://api.github.com/users/tombuildsstuff/followers","following_url":"https://api.github.com/users/tombuildsstuff/following{/other_user}","gists_url":"https://api.github.com/users/tombuildsstuff/gists{/gist_id}","starred_url":"https://api.github.com/users/tombuildsstuff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tombuildsstuff/subscriptions","organizations_url":"https://api.github.com/users/tombuildsstuff/orgs","repos_url":"https://api.github.com/users/tombuildsstuff/repos","events_url":"https://api.github.com/users/tombuildsstuff/events{/privacy}","received_events_url":"https://api.github.com/users/tombuildsstuff/received_events","type":"User","site_admin":false},"assignees":[{"login":"tombuildsstuff","id":666005,"avatar_url":"https://avatars1.githubusercontent.com/u/666005?v=4","gravatar_id":"","url":"https://api.github.com/users/tombuildsstuff","html_url":"https://github.com/tombuildsstuff","followers_url":"https://api.github.com/users/tombuildsstuff/followers","following_url":"https://api.github.com/users/tombuildsstuff/following{/other_user}","gists_url":"https://api.github.com/users/tombuildsstuff/gists{/gist_id}","starred_url":"https://api.github.com/users/tombuildsstuff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tombuildsstuff/subscriptions","organizations_url":"https://api.github.com/users/tombuildsstuff/orgs","repos_url":"https://api.github.com/users/tombuildsstuff/repos","events_url":"https://api.github.com/users/tombuildsstuff/events{/privacy}","received_events_url":"https://api.github.com/users/tombuildsstuff/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/milestones/9","html_url":"https://github.com/terraform-providers/terraform-provider-azurerm/milestone/9","labels_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/milestones/9/labels","id":3157236,"number":9,"title":"1.4.0","description":"","creator":{"login":"tombuildsstuff","id":666005,"avatar_url":"https://avatars1.githubusercontent.com/u/666005?v=4","gravatar_id":"","url":"https://api.github.com/users/tombuildsstuff","html_url":"https://github.com/tombuildsstuff","followers_url":"https://api.github.com/users/tombuildsstuff/followers","following_url":"https://api.github.com/users/tombuildsstuff/following{/other_user}","gists_url":"https://api.github.com/users/tombuildsstuff/gists{/gist_id}","starred_url":"https://api.github.com/users/tombuildsstuff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tombuildsstuff/subscriptions","organizations_url":"https://api.github.com/users/tombuildsstuff/orgs","repos_url":"https://api.github.com/users/tombuildsstuff/repos","events_url":"https://api.github.com/users/tombuildsstuff/events{/privacy}","received_events_url":"https://api.github.com/users/tombuildsstuff/received_events","type":"User","site_admin":false},"open_issues":25,"closed_issues":13,"state":"open","created_at":"2018-03-02T20:03:24Z","updated_at":"2018-04-24T14:56:23Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2017-12-31T13:54:47Z","updated_at":"2018-04-24T14:56:23Z","closed_at":"2018-04-24T14:56:23Z","author_association":"NONE","body":"### Terraform Version\r\n```\r\nTerraform v0.11.1\r\nAzureRM version 1.0\r\n```\r\n\r\n### Terraform Configuration Files\r\n```\r\nresource \"azurerm_key_vault\" \"test_keyvault\" {\r\n    provider = \"azurerm.operations\"\r\n    name = \"test-${var.MyNumber}-kv\"\r\n    location = \"North Europe\"\r\n    resource_group_name = \"${azurerm_resource_group.opstenant_resource_group.name}\"\r\n\r\n    sku {\r\n        name = \"standard\"\r\n    }\r\n\r\n    tenant_id = \"${var.tenant_id}\"\r\n\r\n  access_policy {\r\n    tenant_id = \"${var.tenant_id}\"\r\n    object_id = \"${var.group_devops_id}\"\r\n\r\n    key_permissions = [\r\n      \"get\",\r\n    ]\r\n\r\n    secret_permissions = [\r\n      \"get\",\"set\",\"list\",\"delete\"\r\n    ]\r\n  }\r\n\r\n  access_policy {\r\n    tenant_id = \"${var.tenant_id}\"\r\n    object_id = \"${var.spn_devops_id}\"\r\n\r\n    key_permissions = [\r\n      \"get\",\r\n    ]\r\n\r\n    secret_permissions = [\r\n      \"get\",\"set\",\"list\",\"delete\"\r\n    ]\r\n  }\r\n\r\n    access_policy {\r\n    tenant_id = \"${var.tenant_id}\"\r\n    object_id = \"${var.tfs_prod_spn}\"\r\n\r\n    key_permissions = [\r\n      \"get\",\r\n    ]\r\n\r\n    secret_permissions = [\r\n      \"get\",\"set\",\"list\",\"delete\"\r\n    ]\r\n  }\r\n\r\n\r\n  enabled_for_deployment = true\r\n  enabled_for_template_deployment = true\r\n\r\ntags = \"${var.resource_tags}\"\r\n}\r\n\r\n################### SECRETS\r\n\r\nresource \"azurerm_key_vault_secret\" \"tenant_admuser_secret\" {\r\n  provider = \"azurerm.operations\"\r\n  name      = \"${var.admUser}\"\r\n  value     = \"${var.admPass}\"\r\n  vault_uri = \"${azurerm_key_vault.test_keyvault.vault_uri}\"\r\n  depends_on = [\"azurerm_key_vault.test_keyvault\"]\r\n\r\n  tags = \"${var.resource_tags}\"\r\n}\r\n```\r\n\r\n### Crash Output\r\n1 error(s) occurred:\r\n* module.MyModule.module.TestModule.azurerm_key_vault.test_keyvault: 1 error(s) occurred:\r\n* azurerm_key_vault.ops_keyvault: dial tcp: lookup test-00006-kv.vault.azure.net: no such host\r\n\r\n### Expected Behavior\r\nAzureRM keyvault should be created and secret should wait for DNS propogation\r\n\r\n### Actual Behavior\r\nI receive the crash.\r\nIf i re run the same command, it works, because now the keyvault DNS hostname is replicated across azure dns servers\r\n\r\n### Steps to Reproduce\r\nCreate .tf files with keyvault and secret\r\nTerraform apply\r\n\r\n### Important Factoids\r\nThe files are fine, a second terraform apply rerun creates the secrets successfully.\r\nThe \"depends_on\" part was added to test maybe it will help waiting for keyvault availbility\r\nThis issue started out of the blue, like a new terraform version issue.\r\n"}}
{"actor":{"display_login":"tombuildsstuff"}}