View contents of a file that is being tracked with Change Tracking
File content tracking allows you to view the contents of a file before and after a change that is being tracked with Change Tracking. To do this, it saves the file contents to a storage account after each change occurs.
A standard storage account using the Resource Manager deployment model is required for storing file content. Premium and classic deployment model storage accounts should not be used. For more information on storage accounts, see About Azure storage accounts
The storage account used can only have 1 Automation Account connected.
Change Tracking is enabled in your Automation Account.
Enable file content tracking
In the Azure portal, open your Automation account, and then select Change tracking.
On the top menu, select Edit Settings.
Select File Content and click Link. This opens the Add Content Location for Change Tracking pane.
Select the subscription and storage account to use to store the file contents to. If you want to enable file content tracking for all existing tracked files, select On for Upload file content for all settings. You can change this for each file path afterwards.
Once enabled, the storage account and the SAS Uris are shown. The SAS Uris expire after 365 days, and can be recreated by clicking the Regenerate button.
Add a file
The following steps walk you through turning on change tracking for a file:
On the Edit Settings page of Change Tracking, select either Windows Files or Linux Files tab, and click Add
Fill out the information for the file path and select True under Upload file content for all settings. This setting enables file content tracking for that file path only.
Viewing the contents of a tracked file
Once a change has been detected for the file or a file in the path, it shows in the portal. Select the file change from the list of changes. The Change details pane is displayed.
On the Change details page, you see the standard before and after file information, in the top left, click View File Content Changes to see the contents of the file.
The new page shows you the file contents in a side-by-side view. You can also select Inline to see an inline view of the changes.
Visit the tutorial on Change Tracking to learn more about using the solution:
- Use Log searches in Azure Monitor logs to view detailed change tracking data.
Send feedback about: