Skip to main content

resource_changes

Creates, updates, deletes, gets or lists a resource_changes resource.

Overview

Nameresource_changes
TypeResource
Idazure.change_analysis.resource_changes

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
changeTypestringThe type of the change. Known values are: "Add", "Remove", and "Update".
initiatedByListarrayThe list of identities who might initiated the change. The identity could be user name (email address) or the object ID of the Service Principal.
propertyChangesarrayThe list of detailed changes at json property level.
resourceIdstringThe resource id that the change is attached to.
timeStampstring (date-time)The time when the change is detected.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectresource_id, $startTime, $endTime$skipTokenList the changes of a resource within the specified time range. Customer data will be masked if the user doesn't have access. List the changes of a resource within the specified time range. Customer data will be masked if the user doesn't have access.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
$endTimestring (date-time)Specifies the end time of the changes request. Required.
$startTimestring (date-time)Specifies the start time of the changes request. Required.
resource_idstringThe identifier of the resource. Required.
$skipTokenstringA skip token is used to continue retrieving items after an operation returns a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. Default value is None.

SELECT examples

List the changes of a resource within the specified time range. Customer data will be masked if the user doesn't have access. List the changes of a resource within the specified time range. Customer data will be masked if the user doesn't have access.

SELECT
id,
name,
changeType,
initiatedByList,
propertyChanges,
resourceId,
timeStamp,
type
FROM azure.change_analysis.resource_changes
WHERE resource_id = '{{ resource_id }}' -- required
AND $startTime = '{{ $startTime }}' -- required
AND $endTime = '{{ $endTime }}' -- required
AND $skipToken = '{{ $skipToken }}'
;