Which scenarios allow to use Chef or Azure SDK to create VM and deploy in automation : <p>There are two ways defined in the Microsoft site in order to create the azure VM.</p>

<ol>
<li><a href="https://docs.microsoft.com/en-us/azure/virtual-machines/windows/csharp" rel="nofollow noreferrer">Creating from C#</a></li>
<li><a href="https://docs.microsoft.com/en-us/azure/virtual-machines/windows/chef-automation" rel="nofollow noreferrer">Create using Chef</a></li>
</ol>

<p>I want to know what is the difference and what would be flexibility can be achieved using the process defined, as VM can also be managed from the Azure portal like Chef Server.</p>

<p>My scenario is to provide the complete automation in creating the azure VM and deploy the app package on it after installing the IIS.</p>
