다음을 통해 공유


PolicyAssignment Class

Definition

The policy assignment.

[Microsoft.Rest.Serialization.JsonTransformation]
public class PolicyAssignment : Microsoft.Rest.Azure.IResource
[<Microsoft.Rest.Serialization.JsonTransformation>]
type PolicyAssignment = class
    interface IResource
Public Class PolicyAssignment
Implements IResource
Inheritance
PolicyAssignment
Attributes
Implements

Constructors

PolicyAssignment()

Initializes a new instance of the PolicyAssignment class.

PolicyAssignment(String, String, String, IList<String>, IDictionary<String, ParameterValuesValue>, String, Object, String, IList<NonComplianceMessage>, String, String, String, String, Identity, SystemData)

Initializes a new instance of the PolicyAssignment class.

Properties

Description

Gets or sets this message will be part of response in case of policy violation.

DisplayName

Gets or sets the display name of the policy assignment.

EnforcementMode

Gets or sets the policy assignment enforcement mode. Possible values are Default and DoNotEnforce. Possible values include: 'Default', 'DoNotEnforce'

Id

Gets the ID of the policy assignment.

Identity

Gets or sets the managed identity associated with the policy assignment.

Location

Gets or sets the location of the policy assignment. Only required when utilizing managed identity.

Metadata

Gets or sets the policy assignment metadata. Metadata is an open ended object and is typically a collection of key value pairs.

Name

Gets the name of the policy assignment.

NonComplianceMessages

Gets or sets the messages that describe why a resource is non-compliant with the policy.

NotScopes

Gets or sets the policy's excluded scopes.

Parameters

Gets or sets the parameter values for the assigned policy rule. The keys are the parameter names.

PolicyDefinitionId

Gets or sets the ID of the policy definition or policy set definition being assigned.

Scope

Gets the scope for the policy assignment.

SystemData

Gets the system metadata relating to this resource.

Type

Gets the type of the policy assignment.

Applies to