Search code examples
angularazurevisual-studio-codecloud

Server Error in '/' Application while deploying a Angular App on Azure


I am new to Azure. I am trying simple Azure cloud deployments. I have this basic demo Angular app which is perfectly working in local environment. I did all the Azure setup & its successfully deploying. But when i browse the website its giving server error. Any inputs please. Thanks

enter image description here


Solution

  • If you are deploying your code in the App service, please check its Default documents.
    It's available in the Appservice's Settings -> Configuration -> Default documents.
    If index.html is not listed in the document list, please add it.

    Screenshot for reference:

    index.html