Search code examples
azure-web-app-servicegithub-actionsazure-deploymentazure-appservice

How to deploy a C# Console app to Azure App Service using Github Actions


I am trying to deploy a C# Console app. (which inserts data from a third party API to Azure SQL) using Github Actions (push to Azure App Service), and I need some guidance for an option.

I pushed my C# code into Github from my Visual Studio solution in my laptop.

I chose this option ("Deploy .Net Core app to an Azure Web App") at Github Actions: enter image description here

This is result that I got: enter image description here

Did I choose wrong option here?

Do I need to create a Web App?


Solution

  • We can deploy the console application into Azure app service using an Azure WebJob. To get complete idea on WebJob. But the performance of the application is not guaranteed. To deploy using Visual Studio. To deploy the application when the WebJob is already created use the link.

    To schedule a WebJob

    To schedule the WebJob refer the link.