Skip to content

Commit af206fe

Browse files
Remove duplicate heading
1 parent d16a33a commit af206fe

File tree

1 file changed

+0
-50
lines changed

1 file changed

+0
-50
lines changed

articles/governance/policy/concepts/event-overview.md

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -36,56 +36,6 @@ for a full tutorial.
3636

3737
[!INCLUDE [policy-events.md](../../../../includes/policy/policy-events.md)]
3838

39-
## Event schema
40-
41-
Azure Policy events contain all the information you need to respond to changes in your data. You can
42-
identify an Azure Policy event when the `eventType` property starts with "Microsoft.PolicyInsights".
43-
Additional information about the usage of Event Grid event properties is documented in
44-
[Event Grid event schema](../../../event-grid/event-schema.md).
45-
46-
| Property | Type | Description |
47-
| -------- | ---- | ----------- |
48-
| `id` | string | Unique identifier for the event. |
49-
| `topic` | string | Full resource path to the event source. This field isn't writeable. Event Grid provides this value. |
50-
| `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>` |
51-
| `data` | object | Azure Policy event data. |
52-
| `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. |
53-
| `data.policyAssignmentId` | string | The resource ID of the policy assignment. |
54-
| `data.policyDefinitionId` | string | The resource ID of the policy definition. |
55-
| `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. |
56-
| `data.complianceState` | string | The compliance state of the resource with respect to the policy assignment. |
57-
| `data.subscriptionId` | string | The subscription ID of the resource. |
58-
| `data.complianceReasonCode` | string | The compliance reason code. May be empty. |
59-
| `eventType` | string | One of the registered event types for this event source. |
60-
| `eventTime` | string | The time the event is generated based on the provider's UTC time. |
61-
| `dataVersion` | string | The schema version of the data object. The publisher defines the schema version. |
62-
| `metadataVersion` | string | The schema version of the event metadata. Event Grid defines the schema of the top-level properties. Event Grid provides this value. |
63-
64-
Here's an example of a policy state change event:
65-
66-
```json
67-
[{
68-
"id": "5829794FCB5075FCF585476619577B5A5A30E52C84842CBD4E2AD73996714C4C",
69-
"topic": "/subscriptions/<SubscriptionID>",
70-
"subject": "/subscriptions/<SubscriptionID>/resourceGroups/<ResourceGroup>/providers/<ProviderNamespace>/<ResourceType>/<ResourceName>",
71-
"data": {
72-
"timestamp": "2021-03-27T18:37:42.4496956Z",
73-
"policyAssignmentId": "<policy-assignment-scope>/providers/microsoft.authorization/policyassignments/<policy-assignment-name>",
74-
"policyDefinitionId": "<policy-definition-scope>/providers/microsoft.authorization/policydefinitions/<policy-definition-name>",
75-
"policyDefinitionReferenceId": "",
76-
"complianceState": "NonCompliant",
77-
"subscriptionId": "<subscription-id>",
78-
"complianceReasonCode": ""
79-
},
80-
"eventType": "Microsoft.PolicyInsights.PolicyStateChanged",
81-
"eventTime": "2021-03-27T18:37:42.5241536Z",
82-
"dataVersion": "1",
83-
"metadataVersion": "1"
84-
}]
85-
```
86-
87-
For more information, see [Azure Policy events schema](../../../event-grid/event-schema-policy.md).
88-
8939
## Practices for consuming events
9040

9141
Applications that handle Azure Policy events should follow these recommended practices:

0 commit comments

Comments
 (0)