Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Return blobs in a container
$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()

This comment has been minimized.

Copy link
Owner Author

@jeffpatton1971 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