共用方式為


IWithScope.WithResourceGroupScope(IResourceGroup) Method

Definition

Specifies the scope of the role assignment to be a resource group.

public Microsoft.Azure.Management.Graph.RBAC.Fluent.RoleAssignment.Definition.IWithCreate WithResourceGroupScope (Microsoft.Azure.Management.ResourceManager.Fluent.IResourceGroup resourceGroup);
abstract member WithResourceGroupScope : Microsoft.Azure.Management.ResourceManager.Fluent.IResourceGroup -> Microsoft.Azure.Management.Graph.RBAC.Fluent.RoleAssignment.Definition.IWithCreate
Public Function WithResourceGroupScope (resourceGroup As IResourceGroup) As IWithCreate

Parameters

resourceGroup
IResourceGroup

The resource group the assignee is assigned to access.

Returns

Applies to