Delen via


NonComplianceMessage Class

Definition

A message that describes why a resource is non-compliant with the policy. This is shown in 'deny' error messages and on resource's non-compliant compliance results.

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

Constructors

NonComplianceMessage()

Creates an new NonComplianceMessage instance.

Properties

Message

A message that describes why a resource is non-compliant with the policy. This is shown in 'deny' error messages and on resource's non-compliant compliance results.

PolicyDefinitionReferenceId

The policy definition reference ID within a policy set definition the message is intended for. This is only applicable if the policy assignment assigns a policy set definition. If this is not provided the message applies to all policies assigned by this policy assignment.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of NonComplianceMessage.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of NonComplianceMessage.

FromJson(JsonNode)

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

FromJsonString(String)

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

ToJson(JsonObject, SerializationMode)

Serializes this instance of NonComplianceMessage into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Applies to