In this lab, we will use PowerShell, Azure Storage, and Azure Cloud Shell to list out all the files and directories within an Azure Files share. It is expected that you are familiar with the Azure PowerShell cmdlets as this lab will heavily rely on this knowledge to be completed.
Successfully complete this lab by achieving the following learning objectives:
- Get All Files and Directories
You will use the existing and provided PowerShell script from GitHub to get all the files and directories in a specified Azure File Share.
- Modify Script to Get File and Directory SMB Timestamp of lastwritetime
In this objective, we will modify the GitHub PowerShell script to get the SMB timestamps of our files and directories within our Azure File Share we specify. Hint: Look at the JSON output of the files and directories to find the SMB metadata properties.