NonComplianceMessage Class
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.
All required parameters must be populated in order to send to server.
- Inheritance
-
azure.mgmt.resource.policy._serialization.ModelNonComplianceMessage
Constructor
NonComplianceMessage(*, message: str, policy_definition_reference_id: str | None = None, **kwargs: Any)
Keyword-Only Parameters
Name | Description |
---|---|
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. Required. |
policy_definition_reference_id
|
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. |
Variables
Name | Description |
---|---|
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. Required. |
policy_definition_reference_id
|
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. |