ComputeBatchModelFactory.UserIdentity(String, AutoUserSpecification) Method

Definition

The definition of the user identity under which the Task is run. Specify either the userName or autoUser property, but not both.

public static Azure.Compute.Batch.UserIdentity UserIdentity(string username = default, Azure.Compute.Batch.AutoUserSpecification autoUser = default);
static member UserIdentity : string * Azure.Compute.Batch.AutoUserSpecification -> Azure.Compute.Batch.UserIdentity
Public Shared Function UserIdentity (Optional username As String = Nothing, Optional autoUser As AutoUserSpecification = Nothing) As UserIdentity

Parameters

username
String

The name of the user identity under which the Task is run. The userName and autoUser properties are mutually exclusive; you must specify one but not both.

autoUser
AutoUserSpecification

The auto user under which the Task is run. The userName and autoUser properties are mutually exclusive; you must specify one but not both.

Returns

A new UserIdentity instance for mocking.

Applies to