Share via


ComputeBatchModelFactory.BatchPoolIdentity Method

Definition

Initializes a new instance of BatchPoolIdentity.

public static Azure.Compute.Batch.BatchPoolIdentity BatchPoolIdentity (Azure.Compute.Batch.BatchPoolIdentityType type = default, System.Collections.Generic.IEnumerable<Azure.Compute.Batch.UserAssignedIdentity> userAssignedIdentities = default);
static member BatchPoolIdentity : Azure.Compute.Batch.BatchPoolIdentityType * seq<Azure.Compute.Batch.UserAssignedIdentity> -> Azure.Compute.Batch.BatchPoolIdentity
Public Shared Function BatchPoolIdentity (Optional type As BatchPoolIdentityType = Nothing, Optional userAssignedIdentities As IEnumerable(Of UserAssignedIdentity) = Nothing) As BatchPoolIdentity

Parameters

type
BatchPoolIdentityType

The identity of the Batch pool, if configured. The list of user identities associated with the Batch pool. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.

userAssignedIdentities
IEnumerable<UserAssignedIdentity>

The list of user identities associated with the Batch account. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.

Returns

A new BatchPoolIdentity instance for mocking.

Applies to