ComputeBatchModelFactory.LinuxUserConfiguration Method
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.
Properties used to create a user Account on a Linux Compute Node.
public static Azure.Compute.Batch.LinuxUserConfiguration LinuxUserConfiguration(int? uid = default, int? gid = default, string sshPrivateKey = default);
static member LinuxUserConfiguration : Nullable<int> * Nullable<int> * string -> Azure.Compute.Batch.LinuxUserConfiguration
Public Shared Function LinuxUserConfiguration (Optional uid As Nullable(Of Integer) = Nothing, Optional gid As Nullable(Of Integer) = Nothing, Optional sshPrivateKey As String = Nothing) As LinuxUserConfiguration
Parameters
The user ID of the user Account. The uid and gid properties must be specified together or not at all. If not specified the underlying operating system picks the uid.
The group ID for the user Account. The uid and gid properties must be specified together or not at all. If not specified the underlying operating system picks the gid.
- sshPrivateKey
- String
The SSH private key for the user Account. The private key must not be password protected. The private key is used to automatically configure asymmetric-key based authentication for SSH between Compute Nodes in a Linux Pool when the Pool's enableInterNodeCommunication property is true (it is ignored if enableInterNodeCommunication is false). It does this by placing the key pair into the user's .ssh directory. If not specified, password-less SSH is not configured between Compute Nodes (no modification of the user's .ssh directory is done).
Returns
A new LinuxUserConfiguration instance for mocking.