403 Forbidden - Deploying .Net Core to Linux Web App

FH 1 Reputation point
2021-06-05T19:28:11.587+00:00

I'm working on migrating a 2.1 Core Web App(API) from Windows App Service(works fine) to a Linux App Service.

To make it as simple as possible, I did 1 click publish via Visual Studio to a new free Linux App Service.

I am receiving 403 Forbidden with any API call I make to the site.
I have validated I have no access restrictions, and haven't changed anything related to configuration/networking. SSHing and looking at logs, there appear to be no issues. It said it's started and listening.

If I run dotnet build, and dotnet x.dll locally, point Postman to it that URL, it works fine.

Does anyone have any ideas on next steps that would help debug this issue?

Thanks!

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

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 22,516 Reputation points
    2021-06-07T17:43:06.57+00:00

    Thanks for asking question! If I am understanding right you want to move App from Windows to Linux, if so, currently its not possible to move the WebApp from Windows based to Linux. As mentioned in this Uservoice feedback " Unfortunately we can’t provide this feature as there are too many internal dependencies for the underlying OS that would make this complex and potentially breaking for solutions. There definitely could be languages that might be supported but they would an edge case."
    We really appreciate your feedback/suggestion, so kindly up-vote the Uservoice post -All of the feedback you share there will be monitored and reviewed by the Microsoft engineering teams responsible for building Azure.

    You may have to redeploy the App, Also, currently there is a limitation and You can't mix Windows and Linux apps in the same App Service plan.

    Please let us know if further query or issue remains.

    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.