You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`topic`| string | Full resource path to the event source. This field isn't writeable. Event Grid provides this value. |
28
-
|`subject`| string | The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions/<SubscriptionID>/resourceGroups/<ResourceGroup>/providers/<ProviderNamespace>/<ResourceType>/<ResourceName>`|
29
-
|`eventType`| string | One of the registered event types for this event source. |
30
-
|`eventTime`| string | The time the event is generated based on the provider's UTC time. |
31
-
|`id`| string | Unique identifier for the event. |
32
-
|`data`| object | Azure Policy event data. |
33
-
|`dataVersion`| string | The schema version of the data object. The publisher defines the schema version. |
34
-
|`metadataVersion`| string | The schema version of the event metadata. Event Grid defines the schema of the top-level properties. Event Grid provides this value. |
35
-
36
-
# [Cloud event schema](#tab/cloud-event-schema)
37
-
38
-
An event has the following top-level data:
39
-
40
-
| Property | Type | Description |
41
-
| -------- | ---- | ----------- |
42
-
|`source`| string | Full resource path to the event source. This field isn't writeable. Event Grid provides this value. |
43
-
|`subject`| string | The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions/<SubscriptionID>/resourceGroups/<ResourceGroup>/providers/<ProviderNamespace>/<ResourceType>/<ResourceName>`|
44
-
|`type`| string | One of the registered event types for this event source. |
45
-
|`time`| string | The time the event is generated based on the provider's UTC time. |
46
-
|`id`| string | Unique identifier for the event. |
|`timestamp`| string | The time (in UTC) that the resource was scanned by Azure Policy. For ordering events, use this property instead of the top-level `eventTime` or `time` properties. |
57
-
|`policyAssignmentId`| string | The resource ID of the policy assignment. |
58
-
|`policyDefinitionId`| string | The resource ID of the policy definition. |
59
-
|`policyDefinitionReferenceId`| string | The reference ID for the policy definition inside the initiative definition, if the policy assignment is for an initiative. May be empty. |
60
-
|`complianceState`| string | The compliance state of the resource with respect to the policy assignment. |
61
-
|`subscriptionId`| string | The subscription ID of the resource. |
62
-
|`complianceReasonCode`| string | The compliance reason code. May be empty. |
63
-
64
19
## Next steps
65
20
66
21
- For a walkthrough routing Azure Policy state change events, see
|`id`| string | Unique identifier for the event. |
30
28
|`topic`| string | Full resource path to the event source. This field isn't writeable. Event Grid provides this value. |
31
29
|`subject`| string | The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions/<SubscriptionID>/resourceGroups/<ResourceGroup>/providers/<ProviderNamespace>/<ResourceType>/<ResourceName>`|
32
-
|`data`| object | Azure Policy event data. |
33
-
|`data.timestamp`| string | The time (in UTC) that the resource was scanned by Azure Policy. For ordering events, use this property instead of the top level `eventTime` or `time` properties. |
34
-
|`data.policyAssignmentId`| string | The resource ID of the policy assignment. |
35
-
|`data.policyDefinitionId`| string | The resource ID of the policy definition. |
36
-
|`data.policyDefinitionReferenceId`| string | The reference ID for the policy definition inside the initiative definition, if the policy assignment is for an initiative. May be empty. |
37
-
|`data.complianceState`| string | The compliance state of the resource with respect to the policy assignment. |
38
-
|`data.subscriptionId`| string | The subscription ID of the resource. |
39
-
|`data.complianceReasonCode`| string | The compliance reason code. May be empty. |
40
30
|`eventType`| string | One of the registered event types for this event source. |
41
31
|`eventTime`| string | The time the event is generated based on the provider's UTC time. |
32
+
|`id`| string | Unique identifier for the event. |
33
+
|`data`| object | Azure Policy event data. |
42
34
|`dataVersion`| string | The schema version of the data object. The publisher defines the schema version. |
43
35
|`metadataVersion`| string | The schema version of the event metadata. Event Grid defines the schema of the top-level properties. Event Grid provides this value. |
For more information, see [Azure Policy events schema](../../articles/event-grid/event-schema-policy.md).
41
+
| Property | Type | Description |
42
+
| -------- | ---- | ----------- |
43
+
|`source`| string | Full resource path to the event source. This field isn't writeable. Event Grid provides this value. |
44
+
|`subject`| string | The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions/<SubscriptionID>/resourceGroups/<ResourceGroup>/providers/<ProviderNamespace>/<ResourceType>/<ResourceName>`|
45
+
|`type`| string | One of the registered event types for this event source. |
46
+
|`time`| string | The time the event is generated based on the provider's UTC time. |
47
+
|`id`| string | Unique identifier for the event. |
|`timestamp`| string | The time (in UTC) that the resource was scanned by Azure Policy. For ordering events, use this property instead of the top-level `eventTime` or `time` properties. |
58
+
|`policyAssignmentId`| string | The resource ID of the policy assignment. |
59
+
|`policyDefinitionId`| string | The resource ID of the policy definition. |
60
+
|`policyDefinitionReferenceId`| string | The reference ID for the policy definition inside the initiative definition, if the policy assignment is for an initiative. May be empty. |
61
+
|`complianceState`| string | The compliance state of the resource with respect to the policy assignment. |
62
+
|`subscriptionId`| string | The subscription ID of the resource. |
63
+
|`complianceReasonCode`| string | The compliance reason code. May be empty. |
0 commit comments