{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-quickstart-templates/issues/966","labels_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/issues/966/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/issues/966/comments","events_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/issues/966/events","html_url":"https://github.com/Azure/azure-quickstart-templates/issues/966","id":122153217,"number":966,"title":"HELP WANTED: DNS names best guidance","user":{"login":"singhkay","id":6164178,"avatar_url":"https://avatars.githubusercontent.com/u/6164178?v=3","gravatar_id":"","url":"https://api.github.com/users/singhkay","html_url":"https://github.com/singhkay","followers_url":"https://api.github.com/users/singhkay/followers","following_url":"https://api.github.com/users/singhkay/following{/other_user}","gists_url":"https://api.github.com/users/singhkay/gists{/gist_id}","starred_url":"https://api.github.com/users/singhkay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/singhkay/subscriptions","organizations_url":"https://api.github.com/users/singhkay/orgs","repos_url":"https://api.github.com/users/singhkay/repos","events_url":"https://api.github.com/users/singhkay/events{/privacy}","received_events_url":"https://api.github.com/users/singhkay/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Azure/azure-quickstart-templates/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-14T23:07:56Z","updated_at":"2015-12-17T17:51:27Z","closed_at":null,"body":"Currently for DNS names the user must provide a prefix rather than a FQDN. The provided prefix is concatenated with <location>.cloudapp.azure.com by the platform to provide the FQDN for the Public IP. We see users trying to enter a FQDN (abc.com, def.com etc.) which causes failures. The DNS prefix must match the following regex or it will cause an error \r\n\r\n    `^[a-z][a-z0-9-]{1,61}[a-z0-9]$`\r\n\r\nWe'd like to change current templates to provide this guidance as part of the parameter name and description. Here's how to do this\r\n\r\n1. Make sure any template parameter for a DNS label has a `Prefix` at the end. This will give the user a hint of the value that's needed for this parameter. \r\n2. Add to the `metadata.description` information about the regex the DNS labels are expected to meet.\r\n\r\nHere's how a good dns label parameter will look\r\n\r\n    \"dnsLabelPrefix\": {\r\n       \"type\": \"string\",\r\n       \"metadata\": {\r\n          \"description\": \"DNS Label for the Public IP. Must be lowercase. It should match with the following regular expression: ^[a-z][a-z0-9-]{1,61}[a-z0-9]$ or it will raise an error.\"\r\n       }\r\n    },"},"comment":{"url":"https://api.github.com/repos/Azure/azure-quickstart-templates/issues/comments/165528477","html_url":"https://github.com/Azure/azure-quickstart-templates/issues/966#issuecomment-165528477","issue_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/issues/966","id":165528477,"user":{"login":"singhkay","id":6164178,"avatar_url":"https://avatars.githubusercontent.com/u/6164178?v=3","gravatar_id":"","url":"https://api.github.com/users/singhkay","html_url":"https://github.com/singhkay","followers_url":"https://api.github.com/users/singhkay/followers","following_url":"https://api.github.com/users/singhkay/following{/other_user}","gists_url":"https://api.github.com/users/singhkay/gists{/gist_id}","starred_url":"https://api.github.com/users/singhkay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/singhkay/subscriptions","organizations_url":"https://api.github.com/users/singhkay/orgs","repos_url":"https://api.github.com/users/singhkay/repos","events_url":"https://api.github.com/users/singhkay/events{/privacy}","received_events_url":"https://api.github.com/users/singhkay/received_events","type":"User","site_admin":false},"created_at":"2015-12-17T17:51:27Z","updated_at":"2015-12-17T17:51:27Z","body":"@sedouard Ah ok! \r\n\r\n@humbertcostas is working on this now"}}