Just another quicky post:
If you need to add a custom ___domain to an Azure Web App you can use Powershell. Powershell does the same verification that the UI does and is just another way to accomplish setting the custom ___domain or domains.
Note that you don’t set, nor can you change the default azurewebsites.net ___domain.
Here is an example. Lets say I have an azure webapp: jsandersprod.azurewebsite.net and I want to add the www.jsanders.com and dev.jsanders.com sub domains to it. Assuming I have set this up already with my ___domain provider here is how I do it in powershell:
Get-AzureWebsite -Name "jsandersprod" | Set-AzureWebsite -HostNames @("dev.jsanders.com",www.jsanders.com)
That is all there is to it!
Please drop me a note if you found this useful!
Comments
Anonymous
February 23, 2016
good info Jeff. Thanks!Anonymous
February 14, 2017
Cool, thank you! Exactly what i was looking for.