Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Uploading a file to storage on Azure using cmdets

I'm trying to upload an image to Azure storage using powershell. Reading their documentation it dosent seem to be supported (i cant find a reference to how to do it). It seems like a fairly core bit of functionality, have a missed something? Can anyone link me to an example?

like image 377
Tom Squires Avatar asked Nov 19 '12 17:11

Tom Squires


People also ask

Which PowerShell cmdlet is used to upload a local file to a storage account?

The Set-AzureStorageBlobContent cmdlet uploads a local file to an Azure Storage blob.

How do I upload files to Azure blob Storage using API?

Upload contents of a folder to Data Box Blob storage To get your account key, in the Azure portal, go to your storage account. Go to Settings > Access keys, select a key, and paste it into the AzCopy command. If the specified destination container does not exist, AzCopy creates it and uploads the file into it.


1 Answers

There is a Set-AzureStorageBlobContent cmd in windows azure powershell.

Set-AzureStorageBlobContent -Container upload -File .\filename -Blob blobname

For details, please refer to http://msdn.microsoft.com/en-us/library/dn408487.aspx.

like image 104
Yao Avatar answered Oct 11 '22 17:10

Yao