IWithScope.ForResourceGroup(IResourceGroup) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET