Share via


PolicyEvent Class

Definition

Policy event record.

public class PolicyEvent
type PolicyEvent = class
Public Class PolicyEvent
Inheritance
PolicyEvent

Properties

AdditionalProperties

Additional Properties

To assign an object to the value of this property use FromObjectAsJson<T>(T, JsonSerializerOptions).

To assign an already formatted json string to this property use FromString(String).

Examples:

  • BinaryData.FromObjectAsJson("foo"): Creates a payload of "foo".
  • BinaryData.FromString("\"foo\""): Creates a payload of "foo".
  • BinaryData.FromObjectAsJson(new { key = "value" }): Creates a payload of { "key": "value" }.
  • BinaryData.FromString("{\"key\": \"value\"}"): Creates a payload of { "key": "value" }.
ComplianceState

Compliance state of the resource.

Components

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

EffectiveParameters

Effective parameters for the policy assignment.

IsCompliant

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

ManagementGroupIds

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.

PolicyAssignmentParameters

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.

PolicySetDefinitionParameters

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.

ResourceTags

List of resource tags.

ResourceTypeString

Resource type.

SubscriptionId

Subscription ID.

TenantId

Tenant ID for the policy event record.

Timestamp

Timestamp for the policy event record.

Applies to