Skip to content

Instantly share code, notes, and snippets.

@jeffpatton1971
Created March 31, 2017 16:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeffpatton1971/2d23a6860dd76919b91bb21a8b39946c to your computer and use it in GitHub Desktop.
Save jeffpatton1971/2d23a6860dd76919b91bb21a8b39946c to your computer and use it in GitHub Desktop.
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()
@jeffpatton1971
Copy link
Author

.\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