Compartilhar via


ConnectedCluster.CreateRoleAssignment Method

Definition

Overloads

CreateRoleAssignment(KubernetesBuiltInRole, UserAssignedIdentity)

Creates a role assignment for a user-assigned identity that grants access to this ConnectedCluster.

CreateRoleAssignment(KubernetesBuiltInRole, BicepValue<RoleManagementPrincipalType>, BicepValue<Guid>, String)

Creates a role assignment for a principal that grants access to this ConnectedCluster.

CreateRoleAssignment(KubernetesBuiltInRole, UserAssignedIdentity)

Source:
ConnectedCluster.cs

Creates a role assignment for a user-assigned identity that grants access to this ConnectedCluster.

public Azure.Provisioning.Authorization.RoleAssignment CreateRoleAssignment (Azure.Provisioning.Kubernetes.KubernetesBuiltInRole role, Azure.Provisioning.Roles.UserAssignedIdentity identity);
member this.CreateRoleAssignment : Azure.Provisioning.Kubernetes.KubernetesBuiltInRole * Azure.Provisioning.Roles.UserAssignedIdentity -> Azure.Provisioning.Authorization.RoleAssignment
Public Function CreateRoleAssignment (role As KubernetesBuiltInRole, identity As UserAssignedIdentity) As RoleAssignment

Parameters

role
KubernetesBuiltInRole

The role to grant.

Returns

The RoleAssignment.

Applies to

CreateRoleAssignment(KubernetesBuiltInRole, BicepValue<RoleManagementPrincipalType>, BicepValue<Guid>, String)

Source:
ConnectedCluster.cs

Creates a role assignment for a principal that grants access to this ConnectedCluster.

public Azure.Provisioning.Authorization.RoleAssignment CreateRoleAssignment (Azure.Provisioning.Kubernetes.KubernetesBuiltInRole role, Azure.Provisioning.BicepValue<Azure.Provisioning.Authorization.RoleManagementPrincipalType> principalType, Azure.Provisioning.BicepValue<Guid> principalId, string? bicepIdentifierSuffix = default);
member this.CreateRoleAssignment : Azure.Provisioning.Kubernetes.KubernetesBuiltInRole * Azure.Provisioning.BicepValue<Azure.Provisioning.Authorization.RoleManagementPrincipalType> * Azure.Provisioning.BicepValue<Guid> * string -> Azure.Provisioning.Authorization.RoleAssignment
Public Function CreateRoleAssignment (role As KubernetesBuiltInRole, principalType As BicepValue(Of RoleManagementPrincipalType), principalId As BicepValue(Of Guid), Optional bicepIdentifierSuffix As String = Nothing) As RoleAssignment

Parameters

role
KubernetesBuiltInRole

The role to grant.

principalType
BicepValue<RoleManagementPrincipalType>

The type of the principal to assign to.

principalId
BicepValue<Guid>

The principal to assign to.

bicepIdentifierSuffix
String

Optional role assignment identifier name suffix.

Returns

The RoleAssignment.

Applies to