implement Packer to create immutable VM images and deploy asp.net application to a Scale Set in Azure
How to use this Solution has been described in this blog post - https://blogs.msdn.microsoft.com/srikantan/2017/06/26/deploy-web-application-to-azure-vm-scale-sets-using-packer-with-team-services-in-azure/