i would like to install a software on a azure virtual machine by using powershell commands or scripts.
in my case im using powershell custom extension while creating Virtual Machine.
in simple words if i deploy a virtual machine by using ARM Templates it should deploy the Virtual Machine along with its post configuration changes (like software deployment).
Thanks in advance.
Have you already checked the MS Azure docs, MSTechNet and social.msdn.microsoft.com on this topic and they did not provide you what you are trying to accomplish? There are several blogs on this topic as well all over the web.