Home > Storage > Working with Windows Azure Storage –Remove Storage Blob- PowerShell Part – 6

Working with Windows Azure Storage –Remove Storage Blob- PowerShell Part – 6

 

Create the New-AzureStorageContext  and use the below command to delete the files.

 

—-Creating Azure Storage Context—

Import-Module “C:\Program Files (x86)\Microsoft SDKs\Azure\PowerShell\ServiceManagement\Azure\Azure.psd1”
Import-AzurePublishSettingsFile C:\Azure\Azure_credentials_file.publishsettings
$subscriptionName = “Subscription Name”
$storageAccountName = “Storage Account Name”
Select-AzureSubscription $subscriptionName
$storageaccountkey = get-azurestoragekey $storageAccountName | %{$_.Primary}
$destContext = New-AzureStorageContext -StorageAccountName $storageAccountName -StorageAccountKey $storageaccou…

Get-AzureStorageBlob -Container containerstorage -Context $destContext

 

Get-AzureStorageBlob -Container containername -Context $destContext

 

image

Categories: Storage
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: