ServicePrincipalImpl.IWithRoleAssignmentBeta.WithNewRoleInSubscription(BuiltInRole, String) Method

Definition

Assigns a new role to the service principal.

Microsoft.Azure.Management.Graph.RBAC.Fluent.ServicePrincipal.Update.IUpdate IWithRoleAssignmentBeta.WithNewRoleInSubscription (Microsoft.Azure.Management.Graph.RBAC.Fluent.BuiltInRole role, string subscriptionId);
abstract member Microsoft.Azure.Management.Graph.RBAC.Fluent.ServicePrincipal.Update.IWithRoleAssignmentBeta.WithNewRoleInSubscription : 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.WithNewRoleInSubscription : Microsoft.Azure.Management.Graph.RBAC.Fluent.BuiltInRole * string -> Microsoft.Azure.Management.Graph.RBAC.Fluent.ServicePrincipal.Update.IUpdate
Function WithNewRoleInSubscription (role As BuiltInRole, subscriptionId As String) As IUpdate Implements IWithRoleAssignmentBeta.WithNewRoleInSubscription

Parameters

role
BuiltInRole

The role to assign to the service principal.

subscriptionId
System.String

The subscription the service principal can access.

Returns

IUpdate

Implements

Applies to