Skip to content

Instantly share code, notes, and snippets.

@papeMK2
Created August 19, 2016 08:48
Show Gist options
  • Save papeMK2/24ea0442ed59a4d4cfdd4bb52bb246a3 to your computer and use it in GitHub Desktop.
Save papeMK2/24ea0442ed59a4d4cfdd4bb52bb246a3 to your computer and use it in GitHub Desktop.
$StorageAccountName = "Storage Account Name"
$StorageAccountKey = "Storage Account Access Key"
$ContainerName = "Container Name"
$fileName = "Filtering file name"
$Context = New-AzureStorageContext -StorageAccountName $StorageAccountName -StorageAccountKey $StorageAccountKey
$Container = Get-AzureStorageContainer -Context $context -Name $ContainerName
$Blobs = Get-AzureStorageBlob -Container $Container.Name -Context $Context | Where-Object {
$_.Name -eq $FileName
}
$Blobs | Get-AzureStorageBlobContent -Destination "./" -Context $Context -Force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment