Skip to main content

changes

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

Overview

Namechanges
TypeResource
Idazure.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.
changeAttributesobjectDetails about the change resource.
changeTypestringThe type of change that was captured in the resource. Known values are: "Update", "Delete", and "Create".
changesobjectA dictionary with changed property name as a key and the change details as the value.
targetResourceIdstringThe fully qualified ID of the target resource that was changed.
targetResourceTypestringThe namespace and type of the resource.
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
getselectresource_group_name, resource_provider_namespace, resource_type, resource_name, change_resource_id, subscription_idObtains the specified change resource for the target resource.
listselectresource_group_name, resource_provider_namespace, resource_type, resource_name, subscription_id$top, $skipTokenObtains a list of change resources from the past 14 days for the target resource.

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
change_resource_idstringThe ID of the change resource. Required.
resource_group_namestringThe name of the resource group. Required.
resource_namestringThe name of the resource. Required.
resource_provider_namespacestringThe name of the resource provider namespace. Required.
resource_typestringThe name of the resource type. Required.
subscription_idstring
$skipTokenstring(Optional) The page-continuation token. Default value is None.
$topinteger(Optional) Set the maximum number of results per response. Default value is 100.

SELECT examples

Obtains the specified change resource for the target resource.

SELECT
id,
name,
changeAttributes,
changeType,
changes,
targetResourceId,
targetResourceType,
type
FROM azure.resource.changes
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND resource_provider_namespace = '{{ resource_provider_namespace }}' -- required
AND resource_type = '{{ resource_type }}' -- required
AND resource_name = '{{ resource_name }}' -- required
AND change_resource_id = '{{ change_resource_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;