Share via


WindowsSecurityContextOptionsV1.RunAsUserName Property

Definition

Specifies the username of the account to run the process as, within the context of a Windows container.

[YamlDotNet.Serialization.YamlMember(Alias="runAsUserName")]
public string RunAsUserName { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="runAsUserName")>]
member this.RunAsUserName : string with get, set
Public Property RunAsUserName As String

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Remarks

This property is used to set the user identity when executing a process under a specific Windows Security Context. Ensure the specified username exists and has the appropriate permissions within the container.

Applies to