Udostępnij za pośrednictwem


IWithRoleAssignmentBeta.WithNewRoleInResourceGroup Method

Definition

Assigns a new role to the service principal.

public Microsoft.Azure.Management.Graph.RBAC.Fluent.ServicePrincipal.Definition.IWithCreate WithNewRoleInResourceGroup (Microsoft.Azure.Management.Graph.RBAC.Fluent.BuiltInRole role, Microsoft.Azure.Management.ResourceManager.Fluent.IResourceGroup resourceGroup);
abstract member WithNewRoleInResourceGroup : Microsoft.Azure.Management.Graph.RBAC.Fluent.BuiltInRole * Microsoft.Azure.Management.ResourceManager.Fluent.IResourceGroup -> Microsoft.Azure.Management.Graph.RBAC.Fluent.ServicePrincipal.Definition.IWithCreate
Public Function WithNewRoleInResourceGroup (role As BuiltInRole, resourceGroup As IResourceGroup) As IWithCreate

Parameters

role
BuiltInRole

The role to assign to the service principal.

resourceGroup
IResourceGroup

The resource group the service principal can access.

Returns

Applies to