Can we deploy the Web API on Azure App services ?

HimanshuSinha-msft 19,527 Reputation points Microsoft Employee Moderator
2025-10-23T19:14:32.1166667+00:00

Can we deploy the Web API on Azure App services ?

I am getting the a 404 error once i deploy , but locally its works fine .

Thanks
Himanshu

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Azar 30,735 Reputation points MVP Volunteer Moderator
    2025-10-23T20:10:37.8066667+00:00

    Hi there HimanshuSinha-msft

    Thanks for using QandA platform

    you can definitely deploy a Web API to Azure App Service — it’s one of the most common use cases.

    Check thesese

    Make sure your API project’s startup file (like Program.cs or Startup.cs) correctly sets up routing

    If your API runs under a virtual directory or subpath, confirm that the request URL matches that route.

    Verify that your deployment folder structure contains the compiled DLLs and the web.config (for .NET Framework) or proper web.config rewrite rules (for .NET Core).

    Also check the App Service logs (Log stream and Application Logging) for details.

    If it works locally but not in Azure, it’s almost always related to missing routing configuration or publishing the wrong folder.

    If this helps kindly accept the answer

    0 comments No comments

Your answer

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