ComputeBatchModelFactory.AutoUserSpecification 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.
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.