ServicePrincipalImpl.IWithRoleAssignmentBeta.WithNewRole Method

Definition

Assigns a new role to the service principal.

Microsoft.Azure.Management.Graph.RBAC.Fluent.ServicePrincipal.Update.IUpdate IWithRoleAssignmentBeta.WithNewRole (Microsoft.Azure.Management.Graph.RBAC.Fluent.BuiltInRole role, string scope);
abstract member Microsoft.Azure.Management.Graph.RBAC.Fluent.ServicePrincipal.Update.IWithRoleAssignmentBeta.WithNewRole : Microsoft.Azure.Management.Graph.RBAC.Fluent.BuiltInRole * string -> Microsoft.Azure.Management.Graph.RBAC.Fluent.ServicePrincipal.Update.IUpdate
override this.Microsoft.Azure.Management.Graph.RBAC.Fluent.ServicePrincipal.Update.IWithRoleAssignmentBeta.WithNewRole : Microsoft.Azure.Management.Graph.RBAC.Fluent.BuiltInRole * string -> Microsoft.Azure.Management.Graph.RBAC.Fluent.ServicePrincipal.Update.IUpdate
Function WithNewRole (role As BuiltInRole, scope As String) As IUpdate Implements IWithRoleAssignmentBeta.WithNewRole

Parameters

role
BuiltInRole

The role to assign to the service principal.

scope
String

The scope the service principal can access.

Returns

Implements

Applies to