How to fix "The resource you are looking for has been removed, had its name changed, or is temporarily unavailable"

troubleduser 0 Reputation points
2023-10-16T20:45:12.8633333+00:00

After deploying my Angular web app to Azure App service, some pages are inaccessible and all I get is "The resource you are looking for has been removed, had its name changed, or is temporarily unavailable." even tho it works fine locally.
What could be the problem, please?

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

1 answer

Sort by: Most helpful
  1. ajkuma 22,851 Reputation points Microsoft Employee
    2023-10-18T19:15:31.6433333+00:00

    Thanks for the follow-up and update.

    For Angular SPA (Single Page Application), you may need to redirect all queries to the index.html.

    Use a startup command passing --spa argument to PM2 as followed: pm2 serve /home/site/wwwroot/dist/angularfrontend --no-daemon --spa or using a process file.

    For more details, please check: Angular Deployment on App Service Linux

    If the issue still persists, if it's fine, please share your WebApp name.

    0 comments No comments