Upload local file to Azure File Share via Power Shell

Want to upload a log file to your cloud storage? Here is a quick and easy way to do it via Power Shell.

$Context01 = New-AzureStorageContext -StorageAccountKey $AccountKey -StorageAccountName $AccountName
Set-AzureStorageFileContent -ShareName backups -Source "C:\file.log" -Path "DestinationFile.Name" -Context $Context01

Leave a Reply

Your email address will not be published. Required fields are marked *