Apologizes for not having seen this issue before. Microsoft Azure Management Libraries (MAML, for short) can provide this type of access based on Microsoft Azure management APIs. MAML is available as a series of NuGet packages officially released this week only.
To accompany the release, I sent a message related to VS Extension I wrote for // assembly / conference. This extension allows you to go through the VS Project and Item templates, along with some pieces of code that do exactly what you need - create a virtual machine in Microsoft Azure from a console application.
I wrote several other posts on MAML that offer other parts of the manual and information. Hope this helps!
source share