I have a console application written in C# that I plan to deploy to Azure. I need to be able to programmatically control its execution — specifically, start and stop the app using code (c#).
Any suggestion?
Since I am new to deploying console applications in Azure, I don’t have any prior knowledge or experience.
2
Answers
Does your application support CTRL+C to stop it? That’s how Azure will call your app to stop it.
If you use a background task, or otherwise cancellable tasks, then it should exit cleanly.
For example:
Will automatically support CTRL+C to exit.