Skip to main content

changes

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

Overview

Namechanges
TypeResource
Idazure.resources.changes

Fields

NameDatatypeDescription
idtextFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
nametextThe name of the resource
changeResourceIdtextfield from the properties object
change_attributestextfield from the properties object
change_typetextfield from the properties object
changestextfield from the properties object
resourceGroupNametextfield from the properties object
resourceNametextfield from the properties object
resourceProviderNamespacetextfield from the properties object
resourceTypetextfield from the properties object
subscriptionIdtextfield from the properties object
target_resource_idtextfield from the properties object
target_resource_typetextfield from the properties object
typetextThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

NameAccessible byRequired ParamsDescription
getSELECTchangeResourceId, resourceGroupName, resourceName, resourceProviderNamespace, resourceType, subscriptionIdObtains the specified change resource for the target resource
listSELECTresourceGroupName, resourceName, resourceProviderNamespace, resourceType, subscriptionIdObtains a list of change resources from the past 14 days for the target resource

SELECT examples

Obtains a list of change resources from the past 14 days for the target resource

SELECT
id,
name,
changeResourceId,
change_attributes,
change_type,
changes,
resourceGroupName,
resourceName,
resourceProviderNamespace,
resourceType,
subscriptionId,
target_resource_id,
target_resource_type,
type
FROM azure.resources.vw_changes
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND resourceProviderNamespace = '{{ resourceProviderNamespace }}'
AND resourceType = '{{ resourceType }}'
AND subscriptionId = '{{ subscriptionId }}';