My App Service Domain Name Does Not Work

Gwan Lie 20 Reputation points
2023-10-30T00:37:36.2466667+00:00

Let my app name be MyApp. When I invoke my app directly by typing "myApp.AzureWebsites.net", it works.

However, when I use my app service domain, e.g., myAppDomainName.com, it does not work.

In the DNS record for the above service domain, myApp.AzureWebsites.net was assigned to the CNAME. But when I invoke my app using the service domain name, ie, by typing "myAppDomainName.com", it fails with the following message:

404 Web Site not found. ... Custom domain has not been configured inside Azure ... Clear the cache by running the command ipconfig/flushdns.

I already ran ipconfig/flushdns I successfully_. And_ I already assigned myApp.AzureWebsites.net to the CNAME. It used to work in 2022 (last year).

I thought a custom domain was a domain name requiring a certificate. The above domain name (myAppDomainName.com) was purchased from Azure directly a few years back, and has no certificate, thus I do not thing it is a custom damain. Am I wrong?

Please help, I appreciate very much.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,969 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,007 questions
0 comments No comments
{count} votes

Accepted answer
  1. TP 100.1K Reputation points
    2023-10-30T01:00:34.6466667+00:00

    Hi,

    In portal, please browse to your web app -- Custom domains blade, and make sure that myappdomainname.com is shown there and it has Secured in status column. If it doesn't you need to add domain and binding as needed until it says secured. Once you have it listed there as Secured it should work fine.

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

    Thanks.

    -TP

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Gwan Lie 20 Reputation points
    2023-10-31T17:50:23.4133333+00:00

    Hi TP,

    Looks like everything much better today other than that Issuance Pending, which is harmless so far.

    (1) Up until late yesterday, when I checked the Key Vault status (by going to the certificate page and press Certificate Configuration on the left panel, then click the square for the Step 1: Store, then check the Key Vault status for the Key Vault value I created), I got the error message "Failed to link certificate with the selected key vault value. ... The parameter KeyVaultCsmid has an invalid value".

    But today, it works. It accepts the Key Vault value I created, and displays the certificate subscription ID.

    (2) Going to the page for MyApp --> Certificates, pressing the Details gives the matching Subscription ID of mine.

    Thanks so much for your continuous and persistent help,

    Gwan

    0 comments No comments

Your answer

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