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 policy/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/