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,
com.microsoft.azure.management.resources.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.
|
@Beta(value=V1_2_0) ServicePrincipal.Update withNewRole(BuiltInRole role, String scope)
role - the role to assign to the service principalscope - the scope the service principal can access@Beta(value=V1_2_0) ServicePrincipal.Update withNewRoleInSubscription(BuiltInRole role, String subscriptionId)
role - the role to assign to the service principalsubscriptionId - the subscription the service principal can access@Beta(value=V1_2_0) ServicePrincipal.Update withNewRoleInResourceGroup(BuiltInRole role, com.microsoft.azure.management.resources.ResourceGroup resourceGroup)
role - the role to assign to the service principalresourceGroup - the resource group the service principal can access@Beta(value=V1_2_0) ServicePrincipal.Update withoutRole(RoleAssignment roleAssignment)
roleAssignment - the role assignment to remove/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/