Language

IPolicyAssignmentProperties Interface

Definition

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Policy.Models.PolicyAssignmentPropertiesTypeConverter))]
public interface IPolicyAssignmentProperties : Microsoft.Azure.PowerShell.Cmdlets.Policy.Runtime.IJsonSerializable
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Policy.Models.PolicyAssignmentPropertiesTypeConverter))>]
type IPolicyAssignmentProperties = interface
    interface IJsonSerializable
Public Interface IPolicyAssignmentProperties
Implements IJsonSerializable
Derived
Attributes
Implements

Properties

Name Description
AssignmentType

The type of policy assignment. Possible values are NotSpecified, System, SystemHidden, and Custom. Immutable.

DefinitionVersion

The version of the policy definition to use.

Description

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

DisplayName

The display name of the policy assignment.

EffectiveDefinitionVersion

The effective version of the policy definition in use. This is only present if requested via the $expand query parameter.

EnforcementMode

The policy assignment enforcement mode. Possible values are Default, DoNotEnforce, and Enroll

InstanceId

The instance ID of the policy assignment. This ID only and always changes when the assignment is deleted and recreated.

LatestDefinitionVersion

The latest version of the policy definition available. This is only present if requested via the $expand query parameter.

Metadata

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

NonComplianceMessage

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

NotScope

The policy's excluded scopes.

Override

The policy property value override.

Parameter

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

PolicyDefinitionId

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

ResourceSelector

The resource selector list to filter policies by resource properties.

Scope

The scope for the policy assignment.

SelfServeExemptionSettingEnabled

Indicates whether self-serve exemption is enabled.

SelfServeExemptionSettingPolicyDefinitionReferenceId

The policy definition reference IDs for self-serve exemption.

Methods

Name Description
ToJson(JsonObject, SerializationMode) (Inherited from IJsonSerializable)

Applies to