Non Compliance Message Class
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The policy assignment non compliance message used to describe why a resource is non-compliant with a policy.
public class PsNonComplianceMessage
type PsNonComplianceMessage = class
Public Class PsNonComplianceMessage
Creates an instance of PsNonComplianceMessage.
Creates an instance of PsNonComplianceMessage from the equivalent model representation.
The 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.
The policy definition reference ID within a policy set definition that 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.
Convert to JSON
Converts the powershell model to the entity model.