Interface ServicePrincipal.DefinitionStages.WithRoleAssignment
-
- All Known Subinterfaces:
ServicePrincipal.Definition,ServicePrincipal.DefinitionStages.WithCreate
- Enclosing interface:
- ServicePrincipal.DefinitionStages
public static interface ServicePrincipal.DefinitionStages.WithRoleAssignmentA service principal definition allowing role assignments to be added.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ServicePrincipal.DefinitionStages.WithCreatewithNewRole(BuiltInRole role, String scope)Assigns a new role to the service principal.ServicePrincipal.DefinitionStages.WithCreatewithNewRoleInResourceGroup(BuiltInRole role, ResourceGroup resourceGroup)Assigns a new role to the service principal.ServicePrincipal.DefinitionStages.WithCreatewithNewRoleInSubscription(BuiltInRole role, String subscriptionId)Assigns a new role to the service principal.
-
-
-
Method Detail
-
withNewRole
ServicePrincipal.DefinitionStages.WithCreate withNewRole(BuiltInRole role, String scope)
Assigns a new role to the service principal.- Parameters:
role- the role to assign to the service principalscope- the scope the service principal can access- Returns:
- the next stage of the service principal definition
-
withNewRoleInSubscription
ServicePrincipal.DefinitionStages.WithCreate withNewRoleInSubscription(BuiltInRole role, String subscriptionId)
Assigns a new role to the service principal.- Parameters:
role- the role to assign to the service principalsubscriptionId- the subscription the service principal can access- Returns:
- the next stage of the service principal definition
-
withNewRoleInResourceGroup
ServicePrincipal.DefinitionStages.WithCreate withNewRoleInResourceGroup(BuiltInRole role, ResourceGroup resourceGroup)
Assigns a new role to the service principal.- Parameters:
role- the role to assign to the service principalresourceGroup- the resource group the service principal can access- Returns:
- the next stage of the service principal definition
-
-