asp.net-core-3.1azure-pipelines-release-pipelineazure-app-service-plansihostedservice

IHostedService app not starting automatically on azure app service


I have an IHostedService app in dotnet core 3.1, which is deployed on azure app service plan, but it needs to browse the app service to activate IHostedService.

I have automatic deploy pipeline , when it deploy the IHostedService app,it stopped working and I have to start manually by clicking browse button.

Anyone know how to activate IHostedService after deployment?


Solution

  • One of my colleague who is devops expert find the solution for me.

    App service -> configuration -> general settings -> Always On [on]

    The Always On feature keeps your Azure web applications up and running,