PolicyAssignmentProperties Class

Definition

The policy assignment properties.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Policy.Models.PolicyAssignmentPropertiesTypeConverter))]
public class PolicyAssignmentProperties : Microsoft.Azure.PowerShell.Cmdlets.Policy.Models.IPolicyAssignmentProperties
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Policy.Models.PolicyAssignmentPropertiesTypeConverter))>]
type PolicyAssignmentProperties = class
    interface IPolicyAssignmentProperties
    interface IJsonSerializable
Public Class PolicyAssignmentProperties
Implements IPolicyAssignmentProperties
Inheritance
PolicyAssignmentProperties
Attributes
Implements

Constructors

PolicyAssignmentProperties()

Creates an new PolicyAssignmentProperties instance.

Properties

DefinitionVersion

The version of the policy definition to use.

Description

This message will be part of response in case of policy violation.

DisplayName

The display name of the policy assignment.

EnforcementMode

The policy assignment enforcement mode. Possible values are Default and DoNotEnforce.

Metadata

The policy assignment metadata. Metadata is an open ended object and is typically a collection of key value pairs.

NonComplianceMessage

The messages that describe why a resource is non-compliant with the policy.

NotScope

The policy's excluded scopes.

Override

The policy property value override.

Parameter

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

PolicyDefinitionId

The ID of the policy definition or policy set definition being assigned.

ResourceSelector

The resource selector list to filter policies by resource properties.

Scope

The scope for the policy assignment.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of PolicyAssignmentProperties.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of PolicyAssignmentProperties.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Policy.Models.IPolicyAssignmentProperties.

FromJsonString(String)

Creates a new instance of PolicyAssignmentProperties, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of PolicyAssignmentProperties into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Applies to