Hi All,
I wrote a script to create a Linux VM(Ubuntu) in azure. That script also includes to install some software in the VM once it starts. These two are automated in Powershell. I used some SSH.Net libraries to take the remote session using New-Sshsession and Invoke-SshCommand to execute the commands.
But while installing getting the problem with root password. I could not able to pass the password and if i want to pass the password i need to include it for each command that i want to execute as sudo. For Windows VM it is working fine, but for Linux VMs getting problems to install the software as sudo.
Please provide any solution
Thanks,
Bhaskar.