PolicyAssignment Constructors

Definition

Overloads

PolicyAssignment()

Initializes a new instance of the PolicyAssignment class.

PolicyAssignment(String, String, String, IList<String>, IDictionary<String, ParameterValuesValue>, String, Object, String, IList<NonComplianceMessage>, String, String, String, String, Identity, SystemData)

Initializes a new instance of the PolicyAssignment class.

PolicyAssignment()

Initializes a new instance of the PolicyAssignment class.

public PolicyAssignment ();
Public Sub New ()

Applies to

PolicyAssignment(String, String, String, IList<String>, IDictionary<String, ParameterValuesValue>, String, Object, String, IList<NonComplianceMessage>, String, String, String, String, Identity, SystemData)

Initializes a new instance of the PolicyAssignment class.

public PolicyAssignment (string displayName = default, string policyDefinitionId = default, string scope = default, System.Collections.Generic.IList<string> notScopes = default, System.Collections.Generic.IDictionary<string,Microsoft.Azure.Management.ResourceManager.Models.ParameterValuesValue> parameters = default, string description = default, object metadata = default, string enforcementMode = default, System.Collections.Generic.IList<Microsoft.Azure.Management.ResourceManager.Models.NonComplianceMessage> nonComplianceMessages = default, string id = default, string type = default, string name = default, string location = default, Microsoft.Azure.Management.ResourceManager.Models.Identity identity = default, Microsoft.Azure.Management.ResourceManager.Models.SystemData systemData = default);
new Microsoft.Azure.Management.ResourceManager.Models.PolicyAssignment : string * string * string * System.Collections.Generic.IList<string> * System.Collections.Generic.IDictionary<string, Microsoft.Azure.Management.ResourceManager.Models.ParameterValuesValue> * string * obj * string * System.Collections.Generic.IList<Microsoft.Azure.Management.ResourceManager.Models.NonComplianceMessage> * string * string * string * string * Microsoft.Azure.Management.ResourceManager.Models.Identity * Microsoft.Azure.Management.ResourceManager.Models.SystemData -> Microsoft.Azure.Management.ResourceManager.Models.PolicyAssignment
Public Sub New (Optional displayName As String = Nothing, Optional policyDefinitionId As String = Nothing, Optional scope As String = Nothing, Optional notScopes As IList(Of String) = Nothing, Optional parameters As IDictionary(Of String, ParameterValuesValue) = Nothing, Optional description As String = Nothing, Optional metadata As Object = Nothing, Optional enforcementMode As String = Nothing, Optional nonComplianceMessages As IList(Of NonComplianceMessage) = Nothing, Optional id As String = Nothing, Optional type As String = Nothing, Optional name As String = Nothing, Optional location As String = Nothing, Optional identity As Identity = Nothing, Optional systemData As SystemData = Nothing)

Parameters

displayName
String

The display name of the policy assignment.

policyDefinitionId
String

The ID of the policy definition or policy set definition being assigned.

scope
String

The scope for the policy assignment.

notScopes
IList<String>

The policy's excluded scopes.

parameters
IDictionary<String,ParameterValuesValue>

The parameter values for the assigned policy rule. The keys are the parameter names.

description
String

This message will be part of response in case of policy violation.

metadata
Object

The policy assignment metadata. Metadata is an open ended object and is typically a collection of key value pairs.

enforcementMode
String

The policy assignment enforcement mode. Possible values are Default and DoNotEnforce. Possible values include: 'Default', 'DoNotEnforce'

nonComplianceMessages
IList<NonComplianceMessage>

The messages that describe why a resource is non-compliant with the policy.

id
String

The ID of the policy assignment.

type
String

The type of the policy assignment.

name
String

The name of the policy assignment.

location
String

The location of the policy assignment. Only required when utilizing managed identity.

identity
Identity

The managed identity associated with the policy assignment.

systemData
SystemData

The system metadata relating to this resource.

Applies to