ServicePrincipal.DefinitionStages.WithRoleAssignment Interface
public interface WithRoleAssignment
A service principal definition allowing role assignments to be added.
Method Summary
Modifier and Type | Method and Description |
---|---|
Service |
withNewRole(BuiltInRole role, String scope)
Assigns a new role to the service principal. |
Service |
withNewRoleInResourceGroup(BuiltInRole role, ResourceGroup resourceGroup)
Assigns a new role to the service principal. |
Service |
withNewRoleInSubscription(BuiltInRole role, String subscriptionId)
Assigns a new role to the service principal. |
Method Details
withNewRole
public WithCreate withNewRole(BuiltInRole role, String scope)
Assigns a new role to the service principal.
Parameters:
Returns:
withNewRoleInResourceGroup
public WithCreate withNewRoleInResourceGroup(BuiltInRole role, ResourceGroup resourceGroup)
Assigns a new role to the service principal.
Parameters:
Returns:
withNewRoleInSubscription
public WithCreate withNewRoleInSubscription(BuiltInRole role, String subscriptionId)
Assigns a new role to the service principal.
Parameters:
Returns:
Applies to
Azure SDK for Java