Adding a custom domain to Azure App Service

I'm a full-stack developer from South Africa πΏπ¦. I love writing about JavaScript, HTML and CSS.
Search for a command to run...

I'm a full-stack developer from South Africa πΏπ¦. I love writing about JavaScript, HTML and CSS.
No comments yet. Be the first to comment.
Most of you know me for my consistency, a golden arrow in my blog series. I've written 1000 articles in 1008 days! Almost an article a day, and my honeymoon was the only holiday I ever took. I'm super proud of this achievement; it has been a fantasti...

It's not the first time I'll be talking about community. I think it's an essential aspect of any successful tool. This shows in my previous explorations of Astro, Medusa, and now Vendure as well. All these products thrive in a super open, welcoming, ...

The cool part about Vendure is how easy it is to set up and how abstract each layer is. Basically, we get the following elements: External database Server Worker Admin UI Frontend While this is amazing, it also brings a bit of complexity when it co...

The previous article looked at customizing Vendure on a data and process level. In this article, we'll look at customizing emails, as they are often a big part of a webshop system. We'll be looking at two different layers of customization for customi...

Even though Vendure is a pretty significant project out of the box, in some cases, we might want to go in and modify some elements to work to our specific use case. In this article, I'll take a high-level look at some elements we can customize within...

We created our Node hosted Azure app and learned how to auto-deploy from GitHub.
Today we will be looking at running this on a custom domain.
Be aware: Custom domains are not on the free-tier, so you'll need to have a paid account for this! π
Custom domain names are very important to define your project, it's all cool if it's a demo or testing environment, but an actual app should run on its own domain.
First, let's open our App Service and click the Custom domains option on the left.

This will open up the Custom domains menu, and we will be prompted to upgrade out tier if we are on the free tier.
Once you upgrade to a small service, you can click add domain.

Clicking this will open a side drawer on the right, where we can choose our custom domain. In my example, I'm using azure.daily-dev-tips.com.

If you scroll to the bottom, you'll see the domain ownership section.

These are the settings we need for our domain host.
The txt is optional, it seems, I only did the CNAME, and that worked well.
This section is going to be different for wherever your domain is hosted.
My domain is linked to Netlify, so this might be different than your domain.
Go to your Domain settings.

Your domain registrar might say something like: "DNS Management"
Now we need to add a DNS record for Azure.

My settings include this:
Save these settings.
Now we need to go back to Azure to verify the domain.

We need to do the following actions.
Domain ownership marked correctAdd custom domain button to complete thisAnd we are done! Go visit your new domain to verify.

I turned my custom domain off, to not pay for it π
Thank you for reading my blog. Feel free to subscribe to my email newsletter and connect on Facebook or Twitter