4.
Now set a variable for the local location of the files to be uploaded.
$localFolderName = "D:\_TestImages\"
5.
Now you can do the actual upload of the file. Set a variable for the file name, create the local path
(directory + file name), and then use the PowerShell cmdlet Set-AzureStorageFileContent to
upload the file.
$fileName = "DogInCatTree.png"
$localFile = $localFolderName + $fileName
Set-AzureStorageFileContent -Share $s -Source $localFile -Path images
6.
Copy this a couple of times and run it with different file names to upload multiple files. Now run
the script and watch as it echoes the successful commands back to you.
Do'stlaringiz bilan baham: |