@NeerajV-6011
You do not need to connect to individual VM's for code deploy in VMSS.
Please check this document for ways to deploy application to VMSS.
You can use, custom images.
Use Custom Script Extension for deploying application.
Check this tutorial on deploying apps to VMSS using Ansible.
Check this blog post which has details on deploying application on VMSS from Visual Studio.
Please 'Accept as answer' if it helped, so that it can help others in the community looking for help on similar topics.