Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Return blobs in a container
param(
$ResourceGroupName = 'eu2-rsg-clt-prd',
$StorageAccountName = '806355sqlbackup',
$Container = 'p-win-sql-02-mssqlserver'
)
(Get-AzureStorageContainer -Name $Container -Context(Get-AzureRmStorageAccount -ResourceGroupName $ResourceGroupName -StorageAccountName $StorageAccountName).Context).CloudBlobContainer.ListBlobs()
Owner

jeffpatton1971 commented Mar 31, 2017

.\List-CloudBlobs.ps1 |Where-Object -Property Name -Like "*.bak"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment