Compartilhar via


ArmMachineLearningModelFactory.ManagedIdentityCredential Method

Definition

Initializes a new instance of ManagedIdentityCredential.

public static Azure.ResourceManager.MachineLearning.Models.ManagedIdentityCredential ManagedIdentityCredential (string managedIdentityType = default, string userManagedIdentityResourceId = default, string userManagedIdentityClientId = default, string userManagedIdentityPrincipalId = default, string userManagedIdentityTenantId = default);
static member ManagedIdentityCredential : string * string * string * string * string -> Azure.ResourceManager.MachineLearning.Models.ManagedIdentityCredential
Public Shared Function ManagedIdentityCredential (Optional managedIdentityType As String = Nothing, Optional userManagedIdentityResourceId As String = Nothing, Optional userManagedIdentityClientId As String = Nothing, Optional userManagedIdentityPrincipalId As String = Nothing, Optional userManagedIdentityTenantId As String = Nothing) As ManagedIdentityCredential

Parameters

managedIdentityType
String

ManagedIdentityCredential identity type.

userManagedIdentityResourceId
String

Full arm scope for the Id. For ManagedIdentityType = SystemManaged, this field is null.

userManagedIdentityClientId
String

ClientId for the UAMI. For ManagedIdentityType = SystemManaged, this field is null.

userManagedIdentityPrincipalId
String

PrincipalId for the UAMI. For ManagedIdentityType = SystemManaged, this field is null.

userManagedIdentityTenantId
String

TenantId for the UAMI. For ManagedIdentityType = SystemManaged, this field is null.

Returns

A new ManagedIdentityCredential instance for mocking.

Applies to