IWithRoleAssignmentBeta.WithNewRoleInSubscription(BuiltInRole, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Assigns a new role to the service principal.
public Microsoft.Azure.Management.Graph.RBAC.Fluent.ServicePrincipal.Update.IUpdate 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.Update.IUpdate
Public Function WithNewRoleInSubscription (role As BuiltInRole, subscriptionId As String) As IUpdate
Parameters
- role
- BuiltInRole
The role to assign to the service principal.
- subscriptionId
- String
The subscription the service principal can access.