ServicePrincipal.UpdateStages.WithRoleAssignment 接口

定义

A service principal update allowing role assignments to be added.

public interface WithRoleAssignment

方法

withNewRole(BuiltInRole role, String scope)

Assigns a new role to the service principal.

withNewRoleInResourceGroup(BuiltInRole role, ResourceGroup resourceGroup)

Assigns a new role to the service principal.

withNewRoleInSubscription(BuiltInRole role, String subscriptionId)

Assigns a new role to the service principal.

withoutRole(RoleAssignment roleAssignment)

Removes a role from the service principal.

适用于