An Azure service that is used to provision Windows and Linux virtual machines.
@Aniruddh Padmanaban Thanks for posting your query here!
If you want to automate the login process, you can save the below script with the extension.ps1 and run it in PowerShell.
echo "Connecting to your VM's public IP"
$Server="your VM's public IP"
$User="VM's username"
$Password="VM's password"
cmdkey /generic:TERMSRV/$Server /user:$User /pass:$Password
mstsc /v:$Server
Kindly let us know if the above helps or you need further assistance on this issue.
---------------------------------------------------------------------------------------------------------------------------------------------------
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.