{"action":"closed","issue":{"url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/18652","repository_url":"https://api.github.com/repos/MicrosoftDocs/azure-docs","labels_url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/18652/labels{/name}","comments_url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/18652/comments","events_url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/18652/events","html_url":"https://github.com/MicrosoftDocs/azure-docs/issues/18652","id":379535475,"node_id":"MDU6SXNzdWUzNzk1MzU0NzU=","number":18652,"title":"Is there a way to do this via ARM template / Terraform (i.e. non-Portal)?","user":{"login":"cmeyertons","id":19917677,"node_id":"MDQ6VXNlcjE5OTE3Njc3","avatar_url":"https://avatars0.githubusercontent.com/u/19917677?v=4","gravatar_id":"","url":"https://api.github.com/users/cmeyertons","html_url":"https://github.com/cmeyertons","followers_url":"https://api.github.com/users/cmeyertons/followers","following_url":"https://api.github.com/users/cmeyertons/following{/other_user}","gists_url":"https://api.github.com/users/cmeyertons/gists{/gist_id}","starred_url":"https://api.github.com/users/cmeyertons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmeyertons/subscriptions","organizations_url":"https://api.github.com/users/cmeyertons/orgs","repos_url":"https://api.github.com/users/cmeyertons/repos","events_url":"https://api.github.com/users/cmeyertons/events{/privacy}","received_events_url":"https://api.github.com/users/cmeyertons/received_events","type":"User","site_admin":false},"labels":[{"id":836703193,"node_id":"MDU6TGFiZWw4MzY3MDMxOTM=","url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/labels/cxp","name":"cxp","color":"bf1394","default":false},{"id":646545422,"node_id":"MDU6TGFiZWw2NDY1NDU0MjI=","url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/labels/dns/svc","name":"dns/svc","color":"009000","default":false},{"id":836703308,"node_id":"MDU6TGFiZWw4MzY3MDMzMDg=","url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/labels/in-progress","name":"in-progress","color":"c1d9ff","default":false},{"id":853283851,"node_id":"MDU6TGFiZWw4NTMyODM4NTE=","url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/labels/product-question","name":"product-question","color":"43e08a","default":false},{"id":836702742,"node_id":"MDU6TGFiZWw4MzY3MDI3NDI=","url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/labels/triaged","name":"triaged","color":"0e8a16","default":false}],"state":"closed","locked":false,"assignee":{"login":"TravisCragg-MSFT","id":38542241,"node_id":"MDQ6VXNlcjM4NTQyMjQx","avatar_url":"https://avatars3.githubusercontent.com/u/38542241?v=4","gravatar_id":"","url":"https://api.github.com/users/TravisCragg-MSFT","html_url":"https://github.com/TravisCragg-MSFT","followers_url":"https://api.github.com/users/TravisCragg-MSFT/followers","following_url":"https://api.github.com/users/TravisCragg-MSFT/following{/other_user}","gists_url":"https://api.github.com/users/TravisCragg-MSFT/gists{/gist_id}","starred_url":"https://api.github.com/users/TravisCragg-MSFT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TravisCragg-MSFT/subscriptions","organizations_url":"https://api.github.com/users/TravisCragg-MSFT/orgs","repos_url":"https://api.github.com/users/TravisCragg-MSFT/repos","events_url":"https://api.github.com/users/TravisCragg-MSFT/events{/privacy}","received_events_url":"https://api.github.com/users/TravisCragg-MSFT/received_events","type":"User","site_admin":false},"assignees":[{"login":"TravisCragg-MSFT","id":38542241,"node_id":"MDQ6VXNlcjM4NTQyMjQx","avatar_url":"https://avatars3.githubusercontent.com/u/38542241?v=4","gravatar_id":"","url":"https://api.github.com/users/TravisCragg-MSFT","html_url":"https://github.com/TravisCragg-MSFT","followers_url":"https://api.github.com/users/TravisCragg-MSFT/followers","following_url":"https://api.github.com/users/TravisCragg-MSFT/following{/other_user}","gists_url":"https://api.github.com/users/TravisCragg-MSFT/gists{/gist_id}","starred_url":"https://api.github.com/users/TravisCragg-MSFT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TravisCragg-MSFT/subscriptions","organizations_url":"https://api.github.com/users/TravisCragg-MSFT/orgs","repos_url":"https://api.github.com/users/TravisCragg-MSFT/repos","events_url":"https://api.github.com/users/TravisCragg-MSFT/events{/privacy}","received_events_url":"https://api.github.com/users/TravisCragg-MSFT/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2018-11-11T15:53:07Z","updated_at":"2018-11-15T01:53:10Z","closed_at":"2018-11-15T01:53:10Z","author_association":"NONE","body":"I followed the instructions here and it worked great, I can get to my site and I see that the alias is dynamically based on my IP through the portal\n\nI would prefer to not set this up through the portal as it is not repeatable for other environments and thus not a DevOps best practice.  Plus, I have the rest of my infrastructure in Terraform.\n\nI can go to the resource in Resource Explorer and it looks like the IP is hard-coded, so there must be some Azure magic or some undocumented resource that is managing the relationship between the DNS record and Public IP.\n\n```\n{\n      \"id\": \"/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/xxx-dns/providers/Microsoft.Network/dnszones/xxxx.com/A/@\",\n      \"name\": \"@\",\n      \"type\": \"Microsoft.Network/dnszones/A\",\n      \"etag\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\",\n      \"properties\": {\n        \"fqdn\": \"xxxx.com.\",\n        \"TTL\": 3600,\n        \"ARecords\": [\n          {\n            \"ipv4Address\": \"xx.xxx.xx.xxx\"\n          }\n        ]\n      }\n    },\n```\n\n---\n#### Document Details\n\n⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*\n\n* ID: db9bb3a9-5641-d657-86d3-1a3d190cd959\n* Version Independent ID: d72c1cec-8d1b-baa6-d2bb-399680fccabe\n* Content: [Tutorial - Create an Azure DNS alias record to refer to an Azure public IP address.](https://docs.microsoft.com/en-us/azure/dns/tutorial-alias-pip)\n* Content Source: [articles/dns/tutorial-alias-pip.md](https://github.com/Microsoft/azure-docs/blob/master/articles/dns/tutorial-alias-pip.md)\n* Service: **dns**\n* GitHub Login: @vhorne\n* Microsoft Alias: **victorh**"}}
{"actor":{"display_login":"TravisCragg-MSFT"}}