PolicyAssignment.DefinitionStages.WithScope Interface

定义

A policy assignment specifying the scope of the policy.

public interface WithScope

方法

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.

适用于