次の方法で共有


ComputeBatchModelFactory.UserAccount Method

Definition

Properties used to create a user used to execute Tasks on an Azure Batch Compute Node.

public static Azure.Compute.Batch.UserAccount UserAccount(string name = default, string password = default, Azure.Compute.Batch.ElevationLevel? elevationLevel = default, Azure.Compute.Batch.LinuxUserConfiguration linuxUserConfiguration = default, Azure.Compute.Batch.WindowsUserConfiguration windowsUserConfiguration = default);
static member UserAccount : string * string * Nullable<Azure.Compute.Batch.ElevationLevel> * Azure.Compute.Batch.LinuxUserConfiguration * Azure.Compute.Batch.WindowsUserConfiguration -> Azure.Compute.Batch.UserAccount
Public Shared Function UserAccount (Optional name As String = Nothing, Optional password As String = Nothing, Optional elevationLevel As Nullable(Of ElevationLevel) = Nothing, Optional linuxUserConfiguration As LinuxUserConfiguration = Nothing, Optional windowsUserConfiguration As WindowsUserConfiguration = Nothing) As UserAccount

Parameters

name
String

The name of the user Account. Names can contain any Unicode characters up to a maximum length of 20.

password
String

The password for the user Account.

elevationLevel
Nullable<ElevationLevel>

The elevation level of the user Account. The default value is nonAdmin.

linuxUserConfiguration
LinuxUserConfiguration

The Linux-specific user configuration for the user Account. This property is ignored if specified on a Windows Pool. If not specified, the user is created with the default options.

windowsUserConfiguration
WindowsUserConfiguration

The Windows-specific user configuration for the user Account. This property can only be specified if the user is on a Windows Pool. If not specified and on a Windows Pool, the user is created with the default options.

Returns

A new UserAccount instance for mocking.

Applies to