'Creating a new user on Azure VM that is not part of an Active Directory
How do I create a new user that can login to my Azure VM as an administrator? My top google search result mentions Active Directory. This particular machine is not on a domain. I tried creating the user under computer management and I get an unknown error and there is nothing helpful in the Event Viewer.
I also tried adding a user from the Azure Portal under Access Control for my VM instance and see a message that reads "No Virtual Machines In This Subscription Can Be Assigned Access".
Solution 1:[1]
Creating a user under the computer management worked for me
Solution 2:[2]
I just done it by login to the VM where I want the another account:
NB: these instruction are for Win Server 2012 R2 based VMs
- login to the VM by using an existing admin account
- Hit start and type "create an account"
- click on Add a user account
- Enter username & password (password should met the complexity requirements)
- Hit next and you will see a message stating the user has been created
- if required, the account type can be changed to admin
- Hit search and type Change Account Type
- choose the account
- select administrator or standard
- hit change account type
- and you are done :)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Saddam Akhtar |
| Solution 2 | Zubair |
