Question:
I need to upload some files to my Azure storage emulator using scripts. The same task for remote Azure storage is performed easily with Azure PowerShell cmdlets, just call
1 2 |
Add-Blob -BlobType Block -FilePath $myFilePath -ContainerName $myContainerName |
But how can I do the same thing for local storage emulator?
Answer:
Found the solution using PowerShell Cmdlets.
You need to specify -UseDevelopmentStorage option to the cmdlets:
1 2 |
Get-Container -UseDevelopmentStorage |
or
1 2 |
Add-Blob -UseDevelopmentStorage -BlobType Block -FilePath $myFilePath -ContainerName $myContainerName |