Share via

When trying to buy a custom domain for my Static web app get the error: Failed to purchase domain and create Azure DNS zone with error: The subscription xxxx is not eligible to create an App Service Domain.

Jake Penson 20 Reputation points
2026-03-23T16:50:29.1833333+00:00

Hi, I have a new Pay as you Go subscription and and need to setup a custom domain for my static web app but get the error:

Failed to purchase domain and create Azure DNS zone with error: The subscription xxxxx is not eligible to create an App Service Domain.

How can i enable domain buying through the portal for my Static web app?

Thanks!

Azure Static Web Apps
Azure Static Web Apps

An Azure service that provides streamlined full-stack web app development.


Answer accepted by question author
  1. Praneeth Maddali 7,555 Reputation points Microsoft External Staff Moderator
    2026-03-23T18:11:29.62+00:00

    Hi @Jake Penson

    Thanks to TP and Serhii‑Roman Kikot for their helpful suggestions. Adding to their points, here’s some additional context and a clear path forward.

    Thanks for reaching us regarding your issue —especially after moving to a Pay‑As‑You‑Go subscription and trying to get your Static Web App live with a custom domain.

    The error you’re encountering isn’t caused by Azure Static Web Apps itself. It’s due to subscription‑level eligibility checks that apply when purchasing App Service Domains through the Azure portal.

    Although Pay‑As‑You‑Go is a supported subscription type, new subscriptions may not yet be eligible to purchase App Service Domains. For some subscription types, Azure requires sufficient billing or usage history before allowing domain purchases. There’s no portal setting or manual option to enable this behavior, and it can’t be overridden.

    User's image

    The good news is that you’re not blocked from using a custom domain. The recommended and fastest solution is to purchase the domain from an external registrar (such as GoDaddy or Namecheap) and then map it to your Azure Static Web App. This approach is fully supported and commonly used.

    If you have access to another Azure subscription in the same tenant with established billing history, that subscription may be able to purchase the domain instead. Otherwise, using an external registrar is the most reliable option.

    reference :

     Please do not forget to click "Accept the answer” and Yes, this can be beneficial to other community members.

    If you have any other questions, let me know in the "comments" and I would be happy to help you


2 additional answers

Sort by: Most helpful
  1. Jake Penson 20 Reputation points
    2026-03-26T05:59:04.6366667+00:00

    Thanks for the answers. A note to anyone else using static web apps - Godadddy doesn't support CNAME flattening so you can't point a cname at the root domain for DNS. You need to setup 301 forwarding to www from root if you want to do this.Thanks!


  2. TP 155.4K Reputation points Volunteer Moderator
    2026-03-23T17:40:38.3666667+00:00

    Hi Jake,

    I strongly recommend you purchase a domain directly from a domain registrar instead of purchasing App Service Domain (ASD), due to the many issues with ASDs. A domain purchased directly from a domain registrar will work well with all Azure services that support custom domains (including Static Web Apps).

    Please click Accept Answer and upvote if the above was helpful.

    Thanks.

    -TP

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.