Condividi tramite


PolicyAssignmentInner Constructors

Definition

Overloads

PolicyAssignmentInner()

Initializes a new instance of the PolicyAssignmentInner class.

PolicyAssignmentInner(String, String, String, String, String, String, IList<String>, Object, String, Object, EnforcementMode, PolicySku, String, Identity)

Initializes a new instance of the PolicyAssignmentInner class.

PolicyAssignmentInner()

Initializes a new instance of the PolicyAssignmentInner class.

public PolicyAssignmentInner ();
Public Sub New ()

Applies to

PolicyAssignmentInner(String, String, String, String, String, String, IList<String>, Object, String, Object, EnforcementMode, PolicySku, String, Identity)

Initializes a new instance of the PolicyAssignmentInner class.

public PolicyAssignmentInner (string id = default, string name = default, string type = default, string displayName = default, string policyDefinitionId = default, string scope = default, System.Collections.Generic.IList<string> notScopes = default, object parameters = default, string description = default, object metadata = default, Microsoft.Azure.Management.ResourceManager.Fluent.Models.EnforcementMode enforcementMode = default, Microsoft.Azure.Management.ResourceManager.Fluent.Models.PolicySku sku = default, string location = default, Microsoft.Azure.Management.ResourceManager.Fluent.Models.Identity identity = default);
new Microsoft.Azure.Management.ResourceManager.Fluent.Models.PolicyAssignmentInner : string * string * string * string * string * string * System.Collections.Generic.IList<string> * obj * string * obj * Microsoft.Azure.Management.ResourceManager.Fluent.Models.EnforcementMode * Microsoft.Azure.Management.ResourceManager.Fluent.Models.PolicySku * string * Microsoft.Azure.Management.ResourceManager.Fluent.Models.Identity -> Microsoft.Azure.Management.ResourceManager.Fluent.Models.PolicyAssignmentInner
Public Sub New (Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, 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 Object = Nothing, Optional description As String = Nothing, Optional metadata As Object = Nothing, Optional enforcementMode As EnforcementMode = Nothing, Optional sku As PolicySku = Nothing, Optional location As String = Nothing, Optional identity As Identity = Nothing)

Parameters

id
String
name
String
type
String
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
Object

Required if a parameter is used in policy rule.

description
String

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

metadata
Object

The policy assignment metadata.

enforcementMode
EnforcementMode

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

sku
PolicySku

The policy sku. This property is optional, obsolete, and will be ignored.

location
String

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

identity
Identity

The managed identity associated with the policy assignment.

Applies to