5

We're building a hosted service where each of our users gets a custom sub domain on our service's domain when they sign up (for example john.myservice.com).

We handled this by adding a wildcard entry in our Azure Website's domain manager (*.myservice.com) and Azure Websites would now correctly handle all sub domains of the domain we added.

However, we also allow our users to map their own custom domains to their sub domain (for example: johnsmith.com points to john.myservice.com).

Right now we've achieved this by adding an A Record to johnsmith.com's DNS pointing to the Azure Websites IP Address, and have added johnsmith.com as an additional domain in Azure Websites' domain manager.

So far, this is working as expected. My question is how many such domains does Azure Websites support? Say we have a million users who each want to map their custom domains to their hosted sub domain.

Does Azure have a hard limit on the number of fully qualified domains that can be mapped to a website?

On a related note, what would be the best way to go about this on a Azure Website. I'm sure there are other approaches apart from the one we are using right now.

pnuts
  • 58,317
  • 11
  • 87
  • 139
Uzair Sajid
  • 2,135
  • 2
  • 21
  • 28

2 Answers2

6

Nir Mashkowski (Admin, Microsoft Azure) has stated that the limit is now 500 on the Azure feedback forums.

Peter
  • 1,674
  • 4
  • 27
  • 44
  • 2
    "On a related note, what would be the best way to go about this on a Azure Website. I'm sure there are other approaches apart from the one we are using right now." Anyone have any better suggestions for this? Which solution did you end up going with Uzair? Regards – Alex Stephens Jun 07 '16 at 12:04
  • 1
    Does anyone know what approach to take if you need more like 5000 hostnames? – Mr. Flibble Jan 29 '18 at 00:45
  • As this answer is a few years old - i thought I would ask - is there any hint / roadmap of increasing this limit? Although 500 is fairly ample, we are trying to plan a scalable infrastructure for a multi-tenanted site - so – William Mar 03 '18 at 21:58
  • @William You're best off asking MS about this or posting on their feedback portal - https://feedback.azure.com/ – Peter Mar 05 '18 at 12:09
  • @Mr.Flibble - I'd suggest getting a VM instead of using the Websites/App Service. – Peter Mar 05 '18 at 12:11
  • Looks like limit is still in place: https://social.msdn.microsoft.com/Forums/azure/en-US/b0011f01-999f-42f5-a0a4-6db963e694a1/whats-the-limit-on-number-of-custom-domains-that-can-be-mapped-with-azure-traffic-manager?forum=windowsazurewebsitespreview – icesar Sep 07 '18 at 11:14
5

Azure Websites has a hard limit of 250 custom domains per site.

RuslanY
  • 784
  • 6
  • 7
  • 1
    250 was the correct answer at the time. However, they've recently updated the limit as per @Peter Baily's answer below. – Uzair Sajid Jul 23 '15 at 15:13