Configure hostnames for Web App in ARM Template
The ARM template schema for Microsoft.Web/sites has a hostnames property, but it cannot be set when creating the web site.
Gleb Boushev commented
I'm not really sure what this piece of feedback is about, but you can fully automate the creation of a web app using arm template, including setting ssl, custom hostname binding and uploading of the ssl cert.
Ben Prejean commented
It obviously is not optimal, but I created an arm template parameter, suppressVanityUrl, that when set to true suppresses the the custom domain name (hostname). My VSTS release definitions have one task with suppressVanityUrl set to 1, then the web app deploy, then a another task with suppressVanityUrl set to 0. That is one way to work around the issue. It only adds a minute or so to the release.
Mike Clark commented
This really needs to be supported, this issue makes fully automating the deployment process impossible.
This means we wont be able to create website in production through automated environment scripts.