Hi @Galipelly Rajashekar (Quadrant Resource LLC)
Unfortunately, Azure File Share does not store or return the “last accessed” timestamp for files or folders. The service only maintains the following attributes:
- CreationTime
- LastWriteTime (Modified Time)
- ChangeTime
The LastAccessTime attribute is not supported in Azure Files, and it will remain empty or static even when files are opened through SMB or DFS.
Although Azure Files does not natively support, you can enable Diagnostic Logs:
- In your Storage Account, enable Azure Monitor Diagnostic Logs for the File service.
- These logs capture “read” operations (such as
GetFile,GetFileProperties, etc.). - You can then query the logs in Log Analytics to determine when a file was last accessed.
If you think it's useful, please kindly react accordingly to our system as final answer. If you have any question, please let us know! Thank you!