public static interface ServicePrincipal.UpdateStages.WithRoleAssignment
Modifier and Type | Method and Description |
---|---|
ServicePrincipal.Update |
withNewRole(BuiltInRole role,
String scope)
Assigns a new role to the service principal.
|
ServicePrincipal.Update |
withNewRoleInResourceGroup(BuiltInRole role,
ResourceGroup resourceGroup)
Assigns a new role to the service principal.
|
ServicePrincipal.Update |
withNewRoleInSubscription(BuiltInRole role,
String subscriptionId)
Assigns a new role to the service principal.
|
ServicePrincipal.Update |
withoutRole(RoleAssignment roleAssignment)
Removes a role from the service principal.
|
ServicePrincipal.Update withNewRole(BuiltInRole role, String scope)
role
- the role to assign to the service principalscope
- the scope the service principal can accessServicePrincipal.Update withNewRoleInSubscription(BuiltInRole role, String subscriptionId)
role
- the role to assign to the service principalsubscriptionId
- the subscription the service principal can accessServicePrincipal.Update withNewRoleInResourceGroup(BuiltInRole role, ResourceGroup resourceGroup)
role
- the role to assign to the service principalresourceGroup
- the resource group the service principal can accessServicePrincipal.Update withoutRole(RoleAssignment roleAssignment)
roleAssignment
- the role assignment to removeCopyright © 2019. All rights reserved.