PolicyAssignment Constructors

Definition

Overloads

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
System.String

The display name of the policy assignment.

policyDefinitionId
System.String

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

scope
System.String

The scope for the policy assignment.

notScopes
System.Collections.Generic.IList<System.String>

The policy's excluded scopes.

parameters
System.Collections.Generic.IDictionary<System.String,ParameterValuesValue>

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

description
System.String

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

metadata
System.Object

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

enforcementMode
System.String

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

nonComplianceMessages
System.Collections.Generic.IList<NonComplianceMessage>

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

id
System.String

The ID of the policy assignment.

type
System.String

The type of the policy assignment.

name
System.String

The name of the policy assignment.

location
System.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