Tom Squires
Tom Squires

Reputation: 9286

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?

Upvotes: 6

Views: 6958

Answers (3)

Yao
Yao

Reputation: 271

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.

Upvotes: 6

Ruben Bartelink
Ruben Bartelink

Reputation: 61795

As of this writing, the supported Windows Azure Powershell download now has blob commandlets.

Here's a walkthrough of doing an async parallel blob upload.

But really you want to install Windows Azure Powershell and then man blob

Upvotes: 0

Sandrino Di Mattia
Sandrino Di Mattia

Reputation: 24895

As opposed to the current cmdlets, the 'retired' Windows Azure PowerShell Cmdlets project did supported operations on blob storage:

  • Add-Blob: Uploads a blob to the specified container in Windows Azure blob storage.
  • Clear-Container: Removes blobs from one or more containers in Windows Azure blob storage.
  • Get-Container: Gets the blob containers in the specified storage account.
  • Save-Container: Downloads blobs from one or more containers in Windows Azure blob storage and saves them to local disk.

It's still available for download on CodePlex.

Upvotes: 5

Related Questions