ServicePrincipal.DefinitionStages.WithRoleAssignment.withNewRoleInResourceGroup(BuiltInRole role, ResourceGroup resourceGroup) 方法
定义
Assigns a new role to the service principal.
public WithCreate withNewRoleInResourceGroup(BuiltInRole role, ResourceGroup resourceGroup)
参数
- role
- BuiltInRole
the role to assign to the service principal
- resourceGroup
- ResourceGroup
the resource group the service principal can access
返回
the next stage of the service principal definition