{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-quickstart-templates/issues/583","labels_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/issues/583/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/issues/583/comments","events_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/issues/583/events","html_url":"https://github.com/Azure/azure-quickstart-templates/issues/583","id":105168765,"number":583,"title":"How to get dynamic ip in a VM?","user":{"login":"bingosummer","id":4787647,"avatar_url":"https://avatars.githubusercontent.com/u/4787647?v=3","gravatar_id":"","url":"https://api.github.com/users/bingosummer","html_url":"https://github.com/bingosummer","followers_url":"https://api.github.com/users/bingosummer/followers","following_url":"https://api.github.com/users/bingosummer/following{/other_user}","gists_url":"https://api.github.com/users/bingosummer/gists{/gist_id}","starred_url":"https://api.github.com/users/bingosummer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bingosummer/subscriptions","organizations_url":"https://api.github.com/users/bingosummer/orgs","repos_url":"https://api.github.com/users/bingosummer/repos","events_url":"https://api.github.com/users/bingosummer/events{/privacy}","received_events_url":"https://api.github.com/users/bingosummer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-07T08:11:53Z","updated_at":"2015-09-26T03:16:06Z","closed_at":null,"body":"I assign a dynamic IP for a VM when I am deploying a template. During or after the creation of VM, is there a way to get the dynamic IP?\r\nThanks"},"comment":{"url":"https://api.github.com/repos/Azure/azure-quickstart-templates/issues/comments/143393930","html_url":"https://github.com/Azure/azure-quickstart-templates/issues/583#issuecomment-143393930","issue_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/issues/583","id":143393930,"user":{"login":"bingosummer","id":4787647,"avatar_url":"https://avatars.githubusercontent.com/u/4787647?v=3","gravatar_id":"","url":"https://api.github.com/users/bingosummer","html_url":"https://github.com/bingosummer","followers_url":"https://api.github.com/users/bingosummer/followers","following_url":"https://api.github.com/users/bingosummer/following{/other_user}","gists_url":"https://api.github.com/users/bingosummer/gists{/gist_id}","starred_url":"https://api.github.com/users/bingosummer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bingosummer/subscriptions","organizations_url":"https://api.github.com/users/bingosummer/orgs","repos_url":"https://api.github.com/users/bingosummer/repos","events_url":"https://api.github.com/users/bingosummer/events{/privacy}","received_events_url":"https://api.github.com/users/bingosummer/received_events","type":"User","site_admin":false},"created_at":"2015-09-26T03:16:06Z","updated_at":"2015-09-26T03:16:06Z","body":"@singhkay Thanks for your help.\r\nAFAIK, network interfaces can use only dynamic public IPs in ARM mode. So I can't assign a `static` one to it. But I need to get the public IP address inside the VM. I have two choices:\r\n\r\n1. Pass the public IP address in azuredeploy.json just like https://github.com/Azure/azure-quickstart-templates/blob/master/bosh-setup/azuredeploy.json#L298. But the dynamic IP address is not ready when azuredepoy.json is rendered.\r\n2. Get the public IP address inside the VM using `http://www.whereismyip.com`.\r\n\r\nThe first way does not work for me. So I choose the second one as a workaround."}}