你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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