Steps to build & deploy ASP.NET CORE Web API to Azure Linux App Service using Azure DevOps Build and Release pipelines.
build pipeline
How to create self hosted Linux Build Agent using azure release pipeline (ARM template)
Create Self Hosted Linux Build agent using release pipeline (ARM template) and override template parameter values using variables and scope for release pipeline.