OSProfile.AdminUsername Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets specifies the name of the administrator account. <br><br> This property cannot be updated after the VM is created. <br><br> Windows-only restriction: Cannot end in "." <br><br> Disallowed values: "administrator", "admin", "user", "user1", "test", "user2", "test1", "user3", "admin1", "1", "123", "a", "actuser", "adm", "admin2", "aspnet", "backup", "console", "david", "guest", "john", "owner", "root", "server", "sql", "support", "support_388945a0", "sys", "test2", "test3", "user4", "user5". <br><br> Minimum-length (Linux): 1 character <br><br> Max-length (Linux): 64 characters <br><br> Max-length (Windows): 20 characters <br><br><li> For root access to the Linux VM, see Using root privileges on Linux virtual machines in Azure<br><li> For a list of built-in system users on Linux that should not be used in this field, see Selecting User Names for Linux on Azure
[Newtonsoft.Json.JsonProperty(PropertyName="adminUsername")]
public string AdminUsername { get; set; }
[<Newtonsoft.Json.JsonProperty(PropertyName="adminUsername")>]
member this.AdminUsername : string with get, set
Public Property AdminUsername As String
Property Value
- Attributes
-
Newtonsoft.Json.JsonPropertyAttribute
Applies to
Azure SDK for .NET
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for