RoleAssignment.DefinitionStages.WithAssignee.forServicePrincipal 方法

定义

重载

forServicePrincipal(ServicePrincipal servicePrincipal)

Specifies the assignee of the role assignment to be a service principal.

forServicePrincipal(String servicePrincipalName)

Specifies the assignee of the role assignment to be a service principal.

forServicePrincipal(ServicePrincipal servicePrincipal)

Specifies the assignee of the role assignment to be a service principal.

public WithRole forServicePrincipal(ServicePrincipal servicePrincipal)

参数

servicePrincipal
ServicePrincipal

the service principal object

返回

the next stage in role assignment definition

forServicePrincipal(String servicePrincipalName)

Specifies the assignee of the role assignment to be a service principal.

public WithRole forServicePrincipal(String servicePrincipalName)

参数

servicePrincipalName
String

the service principal name

返回

the next stage in role assignment definition

适用于