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,
com.microsoft.azure.management.resources.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.
|
@Beta(value=V1_1_0) ServicePrincipal.DefinitionStages.WithCreate withNewRole(BuiltInRole role, String scope)
role - the role to assign to the service principalscope - the scope the service principal can access@Beta(value=V1_1_0) ServicePrincipal.DefinitionStages.WithCreate withNewRoleInSubscription(BuiltInRole role, String subscriptionId)
role - the role to assign to the service principalsubscriptionId - the subscription the service principal can access@Beta(value=V1_1_0) ServicePrincipal.DefinitionStages.WithCreate 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/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/