NonComplianceMessage Constructors
Definition
Important
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.
Overloads
NonComplianceMessage() |
Initializes a new instance of the NonComplianceMessage class. |
NonComplianceMessage(String, String) |
Initializes a new instance of the NonComplianceMessage class. |
NonComplianceMessage()
Initializes a new instance of the NonComplianceMessage class.
public NonComplianceMessage ();
Public Sub New ()
Applies to
NonComplianceMessage(String, String)
Initializes a new instance of the NonComplianceMessage class.
public NonComplianceMessage (string message, string policyDefinitionReferenceId = default);
new Microsoft.Azure.Management.ResourceManager.Models.NonComplianceMessage : string * string -> Microsoft.Azure.Management.ResourceManager.Models.NonComplianceMessage
Public Sub New (message As String, Optional policyDefinitionReferenceId As String = Nothing)
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.
- policyDefinitionReferenceId
- String
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.
Applies to
Azure SDK for .NET