Question

How can I configure a sub domain for a site hosted on azure?

I already have configured subdomains which are resolved by my droplet and the are working excellent.

But now what i’m willing to do, is to point a subdomain to an Azure Web Application but i don’t understand quite much about how to achieve this.

What I did (with no results) is to create a CNAME register with my sub domain name to my azure web app domain. For example:

my-sub.domain.com. 1800 IN CNAME azure-webapp.azurewebsites.net.

How should I work this out?

Show comments

Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Accepted Answer

@asb @ryanpq Thanks for the answer guys! Finally the CNAME settings where fine. I made some more research and then I figured out I just had to activate the “custom domain” feature on the corresponding azure Web App Service. And that, with the cname, did the trick!

Thank you both again!

Ryan Quinn
DigitalOcean Employee
DigitalOcean Employee badge
August 24, 2016

You can find more information on setting up DNS records via the DigitalOcean control panel here. It does sound like you have set up the correct records, is your subdomain resolving now?

Create a zone for your subdomain From the Azure portal, select Create a resource. In the search box, type DNS, and select DNS zone. Select Create. In the Create DNS zone pane, type engineering.contoso.com in the Name text box. Select the resource group for your zone. Click Create. I hope this helps. Know more about: azure managed services | azure data migration | windows virtual desktop azure Best Regards

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.