PolicyAssignment.DefinitionStages.WithScope Interface

Definition

A policy assignment specifying the scope of the policy.

public static interface PolicyAssignment.DefinitionStages.WithScope

Methods

forResource(GenericResource genericResource)

Specifies the scope of the policy assignment to be a resource.

forResourceGroup(ResourceGroup resourceGroup)

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

forScope(String scope)

Specifies the scope of the policy assignment.

Applies to