To change the Default URL (DNS Suffix) for your Web Sites in Windows Azure Pack, follow these simple steps;
On the computer that is hosting the Web Sites Controller, run the following Windows PowerShell command:
1 2 3 4 |
## Now Working anymore Import-Module WebSites Set-WebSitesConfig Global -DnsSuffix your-new-domain.com ## Now Working anymore |
Update (2014-07-14): It looks like the command above does not support -DnsSuffix anymore, but one of my readers has posted an alternative solution in the comments;
As an alternative you can use the following approach:
1 2 3 4 |
Import-Modules WebSites $Global = Get-WebSitesConfig -Type Global $Global.DNSSuffix = "new-domain.com" Set-WebSitesConfig -Type Global -pipelinevariable Global |
Check the change by using
1 |
get-WebSitesConfig -type Global | select DnsSuffix |
And you’ll after that also have to do this:
On your SQL Server, open Management Studio.
In the Hosting Database admin.WebSystems table, change the
PublishingDns, FtpDns, and Subdomain to your desired URLs.
Restart your AzurePack servers to make the changes apply everywhere.