Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 708 Bytes

File metadata and controls

20 lines (17 loc) · 708 Bytes
author normesta
ms.service storage

To enable last access time tracking with PowerShell, call the Enable-AzStorageBlobLastAccessTimeTracking command, as shown in the following example. Remember to replace placeholder values in angle brackets with your own values:

# Initialize these variables with your values.
$rgName = "<resource-group>"
$accountName = "<storage-account>"

Enable-AzStorageBlobLastAccessTimeTracking  -ResourceGroupName $rgName `
    -StorageAccountName $accountName `
    -PassThru