Share via


IWithScope.ForResourceGroup(IResourceGroup) Method

Definition

Specifies the scope of PolicyAssignment to be a resource group.

public Microsoft.Azure.Management.ResourceManager.Fluent.PolicyAssignment.Definition.IWithPolicyDefinition ForResourceGroup (Microsoft.Azure.Management.ResourceManager.Fluent.IResourceGroup resourceGroup);
abstract member ForResourceGroup : Microsoft.Azure.Management.ResourceManager.Fluent.IResourceGroup -> Microsoft.Azure.Management.ResourceManager.Fluent.PolicyAssignment.Definition.IWithPolicyDefinition
Public Function ForResourceGroup (resourceGroup As IResourceGroup) As IWithPolicyDefinition

Parameters

resourceGroup
IResourceGroup

The resource group to assign the policy.

Returns

Applies to