Skip to content

Commit 829804a

Browse files
authored
Update get-resource-changes.md
1 parent 233495a commit 829804a

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

articles/governance/resource-graph/how-to/get-resource-changes.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ This article shows how to query resource configuration changes through Resource
2020
- To enable Azure PowerShell to query Azure Resource Graph, [add the module](../first-query-powershell.md#add-the-resource-graph-module).
2121
- To enable Azure CLI to query Azure Resource Graph, [add the extension](../first-query-azurecli.md#add-the-resource-graph-extension).
2222

23-
## Get change events
23+
## Understand change event properties
2424

2525
When a resource is created, updated, or deleted, a new change resource (Microsoft.Resources/changes) is created to extend the modified resource and represent the changed properties. Change records should be available in less than five minutes.
2626

@@ -75,7 +75,7 @@ Each change resource has the following properties:
7575
| `previousResourceSnapshotId` | Contains the ID of the resource snapshot that was used as the previous state of the resource. |
7676
| `newResourceSnapshotId` | Contains the ID of the resource snapshot that was used as the new state of the resource. |
7777

78-
## Get changes using Resource Graph
78+
## Get change events using Resource Graph
7979

8080
### Run a query
8181

@@ -171,7 +171,6 @@ or `-Subscription` parameters respectively.
171171

172172
---
173173

174-
175174
> [!NOTE]
176175
> If the query does not return results from a subscription you already have access to, then the `Search-AzGraph` PowerShell cmdlet defaults to subscriptions in the default context.
177176
@@ -212,7 +211,7 @@ resourcechanges
212211
| project changeTime, targetResourceId, changeType, provisioningStateChange.previousValue, provisioningStateChange.newValue
213212
```
214213

215-
#### Query the latest resource configuration for resources created in the last seven days
214+
#### Latest resource configuration for resources created in the last seven days
216215
```kusto
217216
resourcechanges
218217
| extend targetResourceId = tostring(properties.targetResourceId), changeType = tostring(properties.changeType), changeTime = todatetime(properties.changeAttributes.timestamp)
@@ -243,7 +242,7 @@ resourcechanges  
243242
```
244243

245244

246-
#### Query the latest resource configuration for resources created with a certain tag
245+
#### Latest resource configuration for resources created with a certain tag
247246
```kusto
248247
resourcechanges 
249248
|extend targetResourceId = tostring(properties.targetResourceId), changeType = tostring(properties.changeType), createTime = todatetime(properties.changeAttributes.timestamp) 
@@ -261,7 +260,7 @@ resourcechanges 
261260
- Keep a Configuration Management Database (CMDB) up to date. Instead of refreshing all resources and their full property sets on a scheduled frequency, only get what changed.
262261
- Understand what other properties may have been changed when a resource changed compliance state. Evaluation of these extra properties can provide insights into other properties that may need to be managed via an Azure Policy definition.
263262
- The order of query commands is important. In this example, the `order by` must come before the `limit` command. This command order first orders the query results by the change time and then limits them to ensure that you get the five most recent results.
264-
- Resource configuration changes only supports changes to resource types from the [Resources table](..//reference/supported-tables-resources.md#resources) in Resource Graph. This does not yet include changes to the resource container resources, such as Subscriptions and Resource groups. Changes are queryable for fourteen days. For longer retention, you can [integrate your Resource Graph query with Azure Logic Apps](../tutorials/logic-app-calling-arg.md) and export query results to any of the Azure data stores (such as [Log Analytics](../../azure-monitor/log-analytics-overview.md) for your desired retention.
263+
- Resource configuration changes only supports changes to resource types from the [Resources table](..//reference/supported-tables-resources.md#resources) in Resource Graph. This does not yet include changes to the resource container resources, such as Subscriptions and Resource groups. Changes are queryable for fourteen days. For longer retention, you can [integrate your Resource Graph query with Azure Logic Apps](../tutorials/logic-app-calling-arg.md) and export query results to any of the Azure data stores (such as [Log Analytics](../../azure-monitor/logs/log-analytics-overview.md) for your desired retention.
265264

266265
## Next steps
267266

0 commit comments

Comments
 (0)