public static interface PolicyAssignment.DefinitionStages.WithScope
Modifier and Type | Method and Description |
---|---|
PolicyAssignment.DefinitionStages.WithPolicyDefinition |
forResource(GenericResource genericResource)
Specifies the scope of the policy assignment to be a resource.
|
PolicyAssignment.DefinitionStages.WithPolicyDefinition |
forResourceGroup(ResourceGroup resourceGroup)
Specifies the scope of the policy assignment to be a resource group.
|
PolicyAssignment.DefinitionStages.WithPolicyDefinition |
forScope(String scope)
Specifies the scope of the policy assignment.
|
PolicyAssignment.DefinitionStages.WithPolicyDefinition forScope(String scope)
scope
- the scope of the policy assignmentPolicyAssignment.DefinitionStages.WithPolicyDefinition forResourceGroup(ResourceGroup resourceGroup)
resourceGroup
- the resource group to assign the policyPolicyAssignment.DefinitionStages.WithPolicyDefinition forResource(GenericResource genericResource)
genericResource
- the resource to assign the policyCopyright © 2019. All rights reserved.