1 2 3 4 5 6 7 8 9 10 11 |
#Install-Module -Name Az Import-Module -Name Az Connect-AzAccount #The storage account name and storage access key can be obtained from Settings Access Keys within the Storage Account $Context = New-AzStorageContext -StorageAccountName "StorageAccountName" -StorageAccountKey "StorageAccessKey" #The file share name can be confirmed within the file shares Get-AzStorageFileHandle -Context $Context -ShareName "FileShareName" -Recursive #Copy the path to the file in question. Close-AzStorageFileHandle -Context $Context -ShareName "FileShareName" -Path 'path to file copied from the list' -CloseAll |