Partager via


IWithRoleAssignmentBeta.WithNewRoleInSubscription(BuiltInRole, String) Méthode

Définition

Attribue un nouveau rôle au principal de service.

public Microsoft.Azure.Management.Graph.RBAC.Fluent.ServicePrincipal.Definition.IWithCreate WithNewRoleInSubscription (Microsoft.Azure.Management.Graph.RBAC.Fluent.BuiltInRole role, string subscriptionId);
abstract member WithNewRoleInSubscription : Microsoft.Azure.Management.Graph.RBAC.Fluent.BuiltInRole * string -> Microsoft.Azure.Management.Graph.RBAC.Fluent.ServicePrincipal.Definition.IWithCreate
Public Function WithNewRoleInSubscription (role As BuiltInRole, subscriptionId As String) As IWithCreate

Paramètres

role
BuiltInRole

Rôle à attribuer au principal de service.

subscriptionId
String

Abonnement auquel le principal de service peut accéder.

Retours

S’applique à