{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/6634","repository_url":"https://api.github.com/repos/hashicorp/terraform","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/6634/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/6634/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/6634/events","html_url":"https://github.com/hashicorp/terraform/issues/6634","id":154449588,"number":6634,"title":"0.6.16 - azurerm - unable to obtain public IP","user":{"login":"tasquith","id":17827663,"avatar_url":"https://avatars.githubusercontent.com/u/17827663?v=3","gravatar_id":"","url":"https://api.github.com/users/tasquith","html_url":"https://github.com/tasquith","followers_url":"https://api.github.com/users/tasquith/followers","following_url":"https://api.github.com/users/tasquith/following{/other_user}","gists_url":"https://api.github.com/users/tasquith/gists{/gist_id}","starred_url":"https://api.github.com/users/tasquith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tasquith/subscriptions","organizations_url":"https://api.github.com/users/tasquith/orgs","repos_url":"https://api.github.com/users/tasquith/repos","events_url":"https://api.github.com/users/tasquith/events{/privacy}","received_events_url":"https://api.github.com/users/tasquith/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hashicorp/terraform/labels/bug","name":"bug","color":"f7c6c7"},{"url":"https://api.github.com/repos/hashicorp/terraform/labels/provider/azurerm","name":"provider/azurerm","color":"bfdadc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-05-12T10:31:40Z","updated_at":"2016-05-12T13:30:16Z","closed_at":null,"body":"\r\n### Terraform Version\r\n0.6.16\r\n\r\n### Affected Resource(s)\r\nazurerm_public_ip\r\n\r\n### Terraform Configuration Files\r\n```hcl\r\nresource \"azurerm_public_ip\" \"ap-service-discovery-server-0\" {\r\n    name = \"${var.node_type}-0-public-ip\"\r\n    location = \"${var.location}\"\r\n    resource_group_name = \"${var.resource_group_name}\"\r\n    public_ip_address_allocation = \"dynamic\"\r\n}\r\n\r\nresource \"azurerm_network_interface\" \"ap-service-discovery-server-0\" {\r\n    name = \"${var.node_type}-0-nic\"\r\n    location = \"${var.location}\"\r\n    resource_group_name = \"${var.resource_group_name}\"\r\n    network_security_group_id = \"${azurerm_network_security_group.service_discovery_server.id}\"\r\n\r\n    ip_configuration {\r\n        name = \"${var.node_type}-0-ip-config\"\r\n        subnet_id = \"${element(split(\",\", var.subnet_id), 0)}\"\r\n        private_ip_address_allocation = \"dynamic\"\r\n        public_ip_address_id = \"${azurerm_public_ip.ap-service-discovery-server-0.id}\"\r\n    }\r\n}\r\n\r\nresource \"azurerm_virtual_machine\" \"ap-service-discovery-server-0\" {\r\n    name = \"${var.node_type}-0\"\r\n    resource_group_name = \"${var.resource_group_name}\"\r\n    location = \"${var.location}\"\r\n    vm_size = \"${var.instance_type}\"\r\n    network_interface_ids = [\"${azurerm_network_interface.ap-service-discovery-server-0.id}\"]\r\n    availability_set_id = \"${azurerm_availability_set.ap-service-discovery-availability-set.id}\"\r\n\r\n\r\n    storage_os_disk {\r\n        name = \"${var.node_type}-0-osdisk\"\r\n        #Source VHD as reference\r\n        image_uri = \"${var.source_vhd_path}\"\r\n        #Destination vhd to create\r\n        vhd_uri = \"${var.vhd_storage_base_uri}${var.node_type}-0.vhd\"\r\n        create_option = \"fromImage\"\r\n        os_type = \"linux\"\r\n    }\r\n\r\n    os_profile {\r\n        computer_name = \"${var.node_type}-0\"\r\n        admin_username = \"${var.ssh_username}\"\r\n        admin_password = \"${var.ssh_password}\"\r\n        # Custom data must be base64 and lt 87380 chars\r\n        custom_data = \"${base64encode(template_file.user_data_0.rendered)}\"\r\n    }\r\n\r\n    os_profile_linux_config {\r\n       disable_password_authentication = true\r\n        ssh_keys {\r\n          path = \"/home/${var.ssh_username}/.ssh/authorized_keys\"\r\n          key_data = \"${file(\"${var.ssh_key_path}\")}\"\r\n        }\r\n    }\r\n}\r\n\r\noutput \"public_ips\" { value = \"${azurerm_public_ip.ap-service-discovery-server-0.ip_address}\" }\r\n```\r\n\r\n### Expected Behavior\r\nThe public ip should be retrievable as per the docs.\r\n\r\n### Actual Behavior\r\n* Resource 'azurerm_public_ip.ap-service-discovery-server-0' does not have attribute 'ip_address' for variable 'azurerm_public_ip.ap-service-discovery-server-0.ip_address'\r\n\r\n### Steps to Reproduce\r\nPlease list the steps required to reproduce the issue, for example:\r\n1. create a vm, with a public IP, then try and access that public ip from another resource or for module output."},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/218757307","html_url":"https://github.com/hashicorp/terraform/issues/6634#issuecomment-218757307","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/6634","id":218757307,"user":{"login":"stack72","id":227823,"avatar_url":"https://avatars.githubusercontent.com/u/227823?v=3","gravatar_id":"","url":"https://api.github.com/users/stack72","html_url":"https://github.com/stack72","followers_url":"https://api.github.com/users/stack72/followers","following_url":"https://api.github.com/users/stack72/following{/other_user}","gists_url":"https://api.github.com/users/stack72/gists{/gist_id}","starred_url":"https://api.github.com/users/stack72/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stack72/subscriptions","organizations_url":"https://api.github.com/users/stack72/orgs","repos_url":"https://api.github.com/users/stack72/repos","events_url":"https://api.github.com/users/stack72/events{/privacy}","received_events_url":"https://api.github.com/users/stack72/received_events","type":"User","site_admin":false},"created_at":"2016-05-12T13:30:16Z","updated_at":"2016-05-12T13:30:16Z","body":"sorry @tasquith \r\n\r\nI am trying to work out where the public ip is then actually assigned but I cannot find it in the API calls - I have the full trace of the entire tree from charles proxy to try and see what the requests are doing\r\n\r\nP."}}