# Delete the Files in Azure file share by taking input value GPN(logon) which is provided in CSV ### Az.Accounts, Az.Resources & Az.Storage modules are required to execute the script. # To Set TLS1.2 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 $path="C:\Temp" ### Path for input & output files $NTRUsers=Import-Csv $path\NTRUsersGPN.csv # Input File with UserLogonNames write-host "NTRUsersGPN Count = $($NTRUsers.Count)" ## Connect Azure Subscription with your own method # Connect-AzAccount -AccessToken #FileShare Details from which the user profiles needs to removed $StorageAccountName="" $fileShareName="