Hi @NBazure ,
Based on my understanding of the contexts possible for this question, I am providing my suggestion below:
1. Azure Files - Azure Files offers fully managed file shares in the cloud that are accessible via the industry standard Server Message Block (SMB) protocol or Network File System (NFS) protocol. If you wanted to get the details of operations on Azure Files, you may enable Diagnostics setting as described in this link.
Here are the details of information, that would get collected after enabling it - Resource logs.
Depending on the destination selected in the setting, you may use the corresponding APIs from cmd line tool like CURL to get the stored logs.
2. Files on an Azure VM - If you want to know which processes/applications are accessing a particular file, you might use tools like Procmon or ProcessExplorer. While you may use cmdline to collect ProcMon trace, you would still need UI to analyze it.
If it doesn't answer your question, can you please provide additional context to help us understand it further?