PolicyEvent Class

Definition

Policy event record.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.PolicyInsights.Models.PolicyEventTypeConverter))]
public class PolicyEvent : Microsoft.Azure.PowerShell.Cmdlets.PolicyInsights.Models.IPolicyEvent, Microsoft.Azure.PowerShell.Cmdlets.PolicyInsights.Runtime.IAssociativeArray<object>
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.PolicyInsights.Models.PolicyEventTypeConverter))>]
type PolicyEvent = class
    interface IPolicyEvent
    interface IJsonSerializable
    interface IAssociativeArray<obj>
Public Class PolicyEvent
Implements IAssociativeArray(Of Object), IPolicyEvent
Inheritance
PolicyEvent
Attributes
Implements

Constructors

Name Description
PolicyEvent()

Creates an new PolicyEvent instance.

Fields

Name Description
__additionalProperties

Properties

Name Description
ComplianceState

Compliance state of the resource.

Component

Components events records populated only when URL contains $expand=components clause.

EffectiveParameter

Effective parameters for the policy assignment.

IsCompliant

Flag which states whether the resource is compliant against the policy assignment it was evaluated against.

Item[String]
ManagementGroupId

Comma separated list of management group IDs, which represent the hierarchy of the management groups the resource is under.

OdataContext

OData context string; used by OData clients to resolve type information based on metadata.

OdataId

OData entity ID; always set to null since policy event records do not have an entity ID.

PolicyAssignmentId

Policy assignment ID.

PolicyAssignmentName

Policy assignment name.

PolicyAssignmentOwner

Policy assignment owner.

PolicyAssignmentParameter

Policy assignment parameters.

PolicyAssignmentScope

Policy assignment scope.

PolicyDefinitionAction

Policy definition action, i.e. effect.

PolicyDefinitionCategory

Policy definition category.

PolicyDefinitionId

Policy definition ID.

PolicyDefinitionName

Policy definition name.

PolicyDefinitionReferenceId

Reference ID for the policy definition inside the policy set, if the policy assignment is for a policy set.

PolicySetDefinitionCategory

Policy set definition category, if the policy assignment is for a policy set.

PolicySetDefinitionId

Policy set definition ID, if the policy assignment is for a policy set.

PolicySetDefinitionName

Policy set definition name, if the policy assignment is for a policy set.

PolicySetDefinitionOwner

Policy set definition owner, if the policy assignment is for a policy set.

PolicySetDefinitionParameter

Policy set definition parameters, if the policy assignment is for a policy set.

PrincipalOid

Principal object ID for the user who initiated the resource operation that triggered the policy event.

ResourceGroup

Resource group name.

ResourceId

Resource ID.

ResourceLocation

Resource location.

ResourceTag

List of resource tags.

ResourceType

Resource type.

SubscriptionId

Subscription ID.

TenantId

Tenant ID for the policy event record.

Timestamp

Timestamp for the policy event record.

Methods

Name Description
Add(String, Object)
Clear()
ContainsKey(String)
CopyFrom(IDictionary)
CopyFrom(PSObject)
DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of PolicyEvent.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of PolicyEvent.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.PolicyInsights.Models.IPolicyEvent.

FromJsonString(String)

Creates a new instance of PolicyEvent, deserializing the content from a json string.

Remove(String)
ToJson(JsonObject, SerializationMode)

Serializes this instance of PolicyEvent into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()
TryGetValue(String, Object)

Operators

Name Description
Implicit(PolicyEvent to Dictionary<String,Object>)

Explicit Interface Implementations

Name Description
IAssociativeArray<Object>.AdditionalProperties
IAssociativeArray<Object>.Count
IAssociativeArray<Object>.Keys
IAssociativeArray<Object>.Values

Applies to