Skip to content

Commit 4e083ca

Browse files
Merge pull request #295782 from juliamwang6/patch-2
Update get-resource-changes.md
2 parents b1b28bb + 7a191d7 commit 4e083ca

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ In this article, you learn:
2222
- Change analysis uses _Change Actor_ functionality:
2323
- `changedBy`: Who initiated a change in your resource, like an app ID or authorized person's email address.
2424
- `clientType`: Which client made the change, like _Azure portal_.
25-
- `operation`: Which [operation](../../../role-based-access-control/resource-provider-operations.md) was called, like `Microsoft.Compute/virtualmachines/write`.
25+
- `operation`: Which [operation](../../../role-based-access-control/resource-provider-operations.md) was called, like `Microsoft.Compute/virtualmachines/write`. The `operation` field in the resource changes data represents the [Azure role-based access control permissions](../../../role-based-access-control/resource-provider-operations.md) used to initiate the change.
2626

2727
## Prerequisites
2828

@@ -64,8 +64,14 @@ When a resource is created, updated, or deleted, a new change resource (`Microso
6464
```
6565

6666
[See the full reference guide for change resource properties.](/rest/api/resources/changes)
67+
68+
The `operation` field in the resource changes data represents the [Azure role-based access control permissions](../../../role-based-access-control/resource-provider-operations.md) used to initiate the change. This field does not always describe the actual operation performed but rather the permission (authorization action) that was used. For example, `Microsoft.Compute/virtualmachines/write` corresponds to the permission for the operation `PUT/providers/Microsoft.Compute/virtualmachines`.
69+
70+
For understanding the type of change that was captured in the resource (i.e. Create, Delete, Update), we recommend that you use the `changeType` field rather than the `operation` field, which instead represents the [Azure role-based access control permissions](../../../role-based-access-control/resource-provider-operations.md) used to initiate the change.
71+
6772
> [!NOTE]
6873
> Snapshots are not currently supported for deleted resources.
74+
> For records with `changeType`: Delete, the `changesCount` is shown as 0 because the resource itself gets deleted, and there are no properties remaining.
6975
7076
## Run a query
7177

0 commit comments

Comments
 (0)