My laptop is not working, so I'm trying to create an rdp connection to my azure VM on another computer. I do remember the password but not the username. Where can I find it?
You can download the service configuration file for a deployed service from the Configure blade of the service in the Azure portal. You can then look for the vmName attribute for the Role name element to see the host name. Keep in mind that this host name is used as a base for the host name of each role instance.
The Get-AzureVM cmdlet retrieves information about virtual machines running in Azure. It returns an object with information on a specific virtual machine, or if no virtual machine is specified, for all the virtual machines in the specified service of the current subscription.
[Update] - [26 March 2020] Now with updated Azure screens and view, we do not have option to retrieve Azure VM username from portal but there is a workaround.
[OLD ANSWER - Not Valid Now]: While troubleshooting I tried to find the newly created VM's username with below steps, I hope this will help someone.
1) Go to "Virtual Machines" section on your Azure portal.
2) Select your newly created Virtual Machine name.
3) Click on the "Connect" link just next to the "Start" in the selection bar.
4) There will be a new blade opened for you on the right, with two tabs "RDP" and "SSH".
5) Select the "SSH", there next to the "Login using your VM local account" you find ssh yourusername@"VM's IP address".
you can use yourusername to login to the machine with required password.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With