Azure App Service: Custom Domain purchase incomplete, Portal shows 500 errors

Steve Cooper 20 Reputation points
2023-05-02T15:07:34.85+00:00

Hi. I'm having trouble with a new App Service Domain.

I purchased it several days ago through the portal and it has not become ready for editing.

I'm looking for help getting my domain provisioned and ready to use.

Steps:

  • I already have an existing Azure Web App working at, let's say, foo-bar.azurewebsites.net
  • I previously purchased a domain with another registrar -- foo.bar -- and updated the DNS records, and that domain is now serving my Web App.
  • Then I decided to add a second custom domain, which this time I tried to purchase through the Azure Portal. I went to the web app and 'custom domains' and entered my details for foobar.co.uk.
  • This created a new App Service Domain resource in the portal for foobar.co.uk
  • I waited for the domain to become ready to edit for several days
  • When I look at the resource in the portal, I see An error has occurred message in the portal's main details panel
  • I have no option to delete the domain or otherwise correct things

Notes

The Summary block in the panel contains this JSON, slightly elided for IDs;

{
    "shellProps": {
        "sessionId": "[...]",
        "extName": "WebsitesExtension",
        "contentName": "DomainOverviewBlade"
    },
    "error": {
        "message": "An error has occurred.",
        "code": 500,
        "error": {
            "message": " ",
            "name": "FetchDataError",
            "stack": "FetchDataError: FetchDataError: data set CSMResource:DataCache:1:6\n    at r.t (https://portal.azure.com/Content/Dynamic/w6J-8bNqNeiZ.js:57:857)\n    at r (https://portal.azure.com/Content/Dynamic/cBOk0m-yJ8DM.js:1:45753)\n    at new r (https://portal.azure.com/Content/Dynamic/cBOk0m-yJ8DM.js:1:45965)\n    at https://portal.azure.com/Content/Dynamic/cBOk0m-yJ8DM.js:1:287719\n    at https://portal.azure.com/Content/Dynamic/cBOk0m-yJ8DM.js:1:287822",
            "extension": "WebsitesExtension",
            "type": "MsPortalFx.Errors.FetchDataError",
            "baseTypes": [
                "MsPortalFx.Errors.FetchDataError",
                "MsPortalFx.Errors.DataError",
                "MsPortalFx.Errors.Error"
            ],
            "errorLevel": 2,
            "timestamp": [...],
            "innerErrors": [],
            "dataSetName": "CSMResource:DataCache:1:6"
        }
    }
}

In the network panel of the browser, I can see failing calls to

GET https://management.azure.com/subscriptions/ [subscription-id] /resourceGroups/ [resource-group-name] /providers/Microsoft.DomainRegistration/domains/ [purchased-domain-name] ? api-version = 2015-02-01 & _ = [long-integer]

I can see this request header which looks like it could help with tracing;

x-ms-correlation-request-id: 87ad13be-a39f-4948-b30b-5f72523d1569

The page returned 500 with this JSON response;

{"Message":"An error has occurred."}

Any help getting my domain ready, or cancelled if it can't be made ready, would be appreciated!

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,161 questions
0 comments No comments
{count} votes

Accepted answer
  1. TP 81,571 Reputation points
    2023-05-02T15:51:45.2666667+00:00

    Hi,

    Does the new domain show as registered on godaddy.com/whois (Azure uses them for names) or other domain registrar? If not then I would suggest registering the name separately via a domain registrar and then adding it as a custom domain that way.

    Another option is to open a new support request through the Azure portal and let them fix whatever problem has occurred. You can do this by opening up your App Service and then scrolling down on left navigation bar and clicking New Support Request. Problem type: SSL, Certificates, and Domains Problem subtype: Issues with App Service Domains

    The reason I suggest you open a support case (if you cannot purchase the name separately) is that you have limited ability to troubleshoot/fix name registration issues on your own.

    My general recommendation is for people to register their names directly through the registrar of their choice since that provides full control/ability to edit domain/troubleshoot as well as choice of any registrar.

    If the above was useful please click Accept Answer.

    Thanks.

    -TP


0 additional answers

Sort by: Most helpful