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.
Bryan Wood commented
This is already supported. I just deployed a traffic manager with multiple app services behind it all with custom domain names (host name) and even applied SSL with certificates applied binding to all the bound domain names.
I think this being 2 years old is now very out of date and misleading since this is now completely possible. :)
Max Khon commented
Is it already implemented?
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.