public static interface ServicePrincipal.DefinitionStages.WithRoleAssignment
Modifier and Type | Method and Description |
---|---|
ServicePrincipal.DefinitionStages.WithCreate |
withNewRole(BuiltInRole role,
String scope)
Assigns a new role to the service principal.
|
ServicePrincipal.DefinitionStages.WithCreate |
withNewRoleInResourceGroup(BuiltInRole role,
ResourceGroup resourceGroup)
Assigns a new role to the service principal.
|
ServicePrincipal.DefinitionStages.WithCreate |
withNewRoleInSubscription(BuiltInRole role,
String subscriptionId)
Assigns a new role to the service principal.
|
ServicePrincipal.DefinitionStages.WithCreate withNewRole(BuiltInRole role, String scope)
role
- the role to assign to the service principalscope
- the scope the service principal can accessServicePrincipal.DefinitionStages.WithCreate withNewRoleInSubscription(BuiltInRole role, String subscriptionId)
role
- the role to assign to the service principalsubscriptionId
- the subscription the service principal can accessServicePrincipal.DefinitionStages.WithCreate withNewRoleInResourceGroup(BuiltInRole role, ResourceGroup resourceGroup)
role
- the role to assign to the service principalresourceGroup
- the resource group the service principal can accessCopyright © 2019. All rights reserved.