次の方法で共有


ComputeBatchModelFactory.LinuxUserConfiguration Method

Definition

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

uid
Nullable<Int32>

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.

gid
Nullable<Int32>

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.

Applies to