Condividi tramite


ArmContainerServiceModelFactory.ManagedClusterIdentity Method

Definition

Identity for the managed cluster.

public static Azure.ResourceManager.ContainerService.Models.ManagedClusterIdentity ManagedClusterIdentity(Guid? principalId = default, Guid? tenantId = default, Azure.ResourceManager.Models.ManagedServiceIdentityType? identityType = default, System.Collections.Generic.IDictionary<string,Azure.ResourceManager.ContainerService.Models.ManagedClusterDelegatedIdentity> delegatedResources = default, System.Collections.Generic.IDictionary<Azure.Core.ResourceIdentifier,Azure.ResourceManager.Models.UserAssignedIdentity> userAssignedIdentities = default);
static member ManagedClusterIdentity : Nullable<Guid> * Nullable<Guid> * Nullable<Azure.ResourceManager.Models.ManagedServiceIdentityType> * System.Collections.Generic.IDictionary<string, Azure.ResourceManager.ContainerService.Models.ManagedClusterDelegatedIdentity> * System.Collections.Generic.IDictionary<Azure.Core.ResourceIdentifier, Azure.ResourceManager.Models.UserAssignedIdentity> -> Azure.ResourceManager.ContainerService.Models.ManagedClusterIdentity
Public Shared Function ManagedClusterIdentity (Optional principalId As Nullable(Of Guid) = Nothing, Optional tenantId As Nullable(Of Guid) = Nothing, Optional identityType As Nullable(Of ManagedServiceIdentityType) = Nothing, Optional delegatedResources As IDictionary(Of String, ManagedClusterDelegatedIdentity) = Nothing, Optional userAssignedIdentities As IDictionary(Of ResourceIdentifier, UserAssignedIdentity) = Nothing) As ManagedClusterIdentity

Parameters

principalId
Nullable<Guid>

The principal id of the system assigned identity which is used by master components.

tenantId
Nullable<Guid>

The tenant id of the system assigned identity which is used by master components.

identityType
Nullable<ManagedServiceIdentityType>

The type of identity used for the managed cluster. For more information see use managed identities in AKS.

delegatedResources
IDictionary<String,ManagedClusterDelegatedIdentity>

The delegated identity resources assigned to this managed cluster. This can only be set by another Azure Resource Provider, and managed cluster only accept one delegated identity resource. Internal use only.

userAssignedIdentities
IDictionary<ResourceIdentifier,UserAssignedIdentity>

The user identity associated with the managed cluster. This identity will be used in control plane. Only one user assigned identity is allowed. The keys must be ARM resource IDs in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.

Returns

A new ManagedClusterIdentity instance for mocking.

Applies to