Get-AzureStorageBlob : Could not get the storage context. Please pass in a storage context or set the current storage context Get-AzureStorageBlob : Could not get the storage context. Please pass in a storage context or set the current storage context powershell powershell

Get-AzureStorageBlob : Could not get the storage context. Please pass in a storage context or set the current storage context


You would need to include StorageContext here as well:

$blobs = Get-AzureStorageBlob -Container  $Container

So your code would be:

$blobs = Get-AzureStorageBlob -Container $Container -Context $StorageContext