Table of Contents

Class NonComplianceMessage

Namespace
Azure.ResourceManager.Resources.Models
Assembly
Azure.ResourceManager.dll

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.

public class NonComplianceMessage : IJsonModel<NonComplianceMessage>, IPersistableModel<NonComplianceMessage>
Inheritance
NonComplianceMessage
Implements
IPersistableModel<NonComplianceMessage>
Inherited Members

Constructors

NonComplianceMessage(string)

Initializes a new instance of NonComplianceMessage.

public NonComplianceMessage(string message)

Parameters

message string

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.

Exceptions

ArgumentNullException

message is null.

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.

public string Message { get; set; }

Property Value

string

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.

public string PolicyDefinitionReferenceId { get; set; }

Property Value

string