次の方法で共有


ComputeBatchModelFactory.AutoUserSpecification Method

Definition

Specifies the options for the auto user that runs an Azure Batch Task.

public static Azure.Compute.Batch.AutoUserSpecification AutoUserSpecification(Azure.Compute.Batch.AutoUserScope? scope = default, Azure.Compute.Batch.ElevationLevel? elevationLevel = default);
static member AutoUserSpecification : Nullable<Azure.Compute.Batch.AutoUserScope> * Nullable<Azure.Compute.Batch.ElevationLevel> -> Azure.Compute.Batch.AutoUserSpecification
Public Shared Function AutoUserSpecification (Optional scope As Nullable(Of AutoUserScope) = Nothing, Optional elevationLevel As Nullable(Of ElevationLevel) = Nothing) As AutoUserSpecification

Parameters

scope
Nullable<AutoUserScope>

The scope for the auto user. The default value is pool. If the pool is running Windows a value of Task should be specified if stricter isolation between tasks is required. For example, if the task mutates the registry in a way which could impact other tasks.

elevationLevel
Nullable<ElevationLevel>

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

Returns

A new AutoUserSpecification instance for mocking.

Applies to