Changes - Get
Obtains the specified change resource for the target resource
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Resources/changes/{changeResourceId}?api-version=2022-05-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
change
|
path | True |
string |
The ID of the change resource |
resource
|
path | True |
string |
The name of the resource group. |
resource
|
path | True |
string |
The name of the resource. |
resource
|
path | True |
string |
The name of the resource provider namespace. |
resource
|
path | True |
string |
The name of the resource type. |
subscription
|
path | True |
string |
The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000) |
api-version
|
query | True |
string |
The API version to be used with the HTTP request. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK. |
|
Other Status Codes |
Error response describing why the operation failed. |
Security
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
GetChange
Sample request
GET https://management.azure.com/subscriptions/subscriptionId1/resourceGroups/resourceGroup1/providers/resourceProvider1/resourceType1/resourceName1/providers/Microsoft.Resources/changes/1d58d72f-0719-4a48-9228-b7ea682885bf?api-version=2022-05-01
Sample response
{
"id": "/subscriptions/subscriptionId1/resourceGroups/resourceGroup1/providers/resourceProvider1/resourceType1/resourceName1/Microsoft.Resources/changes/1d58d72f-0719-4a48-9228-b7ea682885bf",
"name": "1d58d72f-0719-4a48-9228-b7ea682885bf",
"type": "Microsoft.Resources/changes",
"properties": {
"targetResourceId": "/subscriptions/subscriptionId1/resourceGroups/resourceGroup1/providers/resourceProvider1/resourceType1/resourceName1",
"targetResourceType": "resourceProvider1/resourceType1",
"changeType": "Update",
"changeAttributes": {
"correlationId": "88420d5d-8d0e-471f-9115-10d34750c617",
"timestamp": "2021-11-19T14:29:09.9210000Z",
"changesCount": 2,
"previousResourceSnapshotId": "ed90e35a-1661-42cc-a44c-e27f508005be",
"newResourceSnapshotId": "6eac9d0f-63b4-4e7f-97a5-740c73757efb"
},
"changes": {
"properties.provisioningState": {
"propertyChangeType": "Update",
"changeCategory": "System",
"previousValue": "Updating",
"newValue": "Succeeded"
},
"tags.key1": {
"propertyChangeType": "Insert",
"changeCategory": "User",
"previousValue": "null",
"newValue": "someValue"
}
}
}
}
Definitions
Name | Description |
---|---|
Change |
Details about the change resource |
Change |
An individual change on the target resource |
Change |
The entity that made the change |
Change |
The properties of a change |
Change |
Change Resource |
Change |
The type of change that was captured in the resource |
Error |
The resource management error additional info. |
Error |
The error detail. |
Error |
Error response |
Property |
The type of change that occurred |
ChangeAttributes
Details about the change resource
Name | Type | Description |
---|---|---|
changesCount |
integer |
The number of changes this resource captures |
correlationId |
string |
The ARM correlation ID of the change resource |
newResourceSnapshotId |
string |
The GUID of the new snapshot |
previousResourceSnapshotId |
string |
The GUID of the previous snapshot |
timestamp |
string |
The time the change(s) on the target resource ocurred |
ChangeBase
An individual change on the target resource
Name | Type | Description |
---|---|---|
changeCategory |
The entity that made the change |
|
newValue |
string |
The target resource property value after the change |
previousValue |
string |
The target resource property value before the change |
propertyChangeType |
The type of change that occurred |
ChangeCategory
The entity that made the change
Name | Type | Description |
---|---|---|
System |
string |
System initiated change |
User |
string |
User initiated change |
ChangeProperties
The properties of a change
Name | Type | Description |
---|---|---|
changeAttributes |
Details about the change resource |
|
changeType |
The type of change that was captured in the resource |
|
changes |
<string,
Change |
A dictionary with changed property name as a key and the change details as the value |
targetResourceId |
string |
The fully qualified ID of the target resource that was changed |
targetResourceType |
string |
The namespace and type of the resource |
ChangeResourceResult
Change Resource
Name | Type | Description |
---|---|---|
id |
string |
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name |
string |
The name of the resource |
properties |
The properties of a change |
|
type |
string |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
ChangeType
The type of change that was captured in the resource
Name | Type | Description |
---|---|---|
Create |
string |
A newly created resource |
Delete |
string |
An existing resource was deleted |
Update |
string |
An existing resource underwent a change |
ErrorAdditionalInfo
The resource management error additional info.
Name | Type | Description |
---|---|---|
info |
object |
The additional info. |
type |
string |
The additional info type. |
ErrorDetail
The error detail.
Name | Type | Description |
---|---|---|
additionalInfo |
The error additional info. |
|
code |
string |
The error code. |
details |
The error details. |
|
message |
string |
The error message. |
target |
string |
The error target. |
ErrorResponse
Error response
Name | Type | Description |
---|---|---|
error |
The error object. |
PropertyChangeType
The type of change that occurred
Name | Type | Description |
---|---|---|
Insert |
string |
A property was newly created |
Remove |
string |
An existing property was deleted |
Update |
string |
An existing property underwent a change |