When I deployed an ASP.NET Core Web Api to my Azure App Service API App I received a 404 Not Found when the page was opened, as seen in Figure 1.
Figure 1, 404 ASP.NET Core
The reason for this is that the deployment or default ASP.NET Core Web API template does not include a default document in the root directory of the web site. For example, index.htm, defualt.aspx, default.htm are default documents and IIS will deliver them if there is no specific file provided when accessing the URL.
Related Articles
You can place one of those files into the root directory of the web site, in the wwwroot directory or request the ASP.NET Core Web API directly by appending /api/
This post first appeared on MSDN Blogs | Get The Latest Information, Insights, Announcements, And News From Microsoft Experts And Developers In The MSDN Blogs., please read the originial post: here