Get blob storage content in powershell Get blob storage content in powershell azure azure

Get blob storage content in powershell


This should work

$latestDeploymentBlob = Get-AzureStorageBlob -Blob app.version -Container $container -Context $blobContext $latestDeployment = $latestDeploymentBlob.ICloudBlob.DownloadText()


Based on my knowledge, it is not possible for you to do it by using Power Shell. With Power Shell, you could list, download, copy blobs, but you could not directly read blobs in storage account. If you want to read blobs, you need download them locally and read them. More information about how to manage blobs with Power Shell please refer to this link.

However, it is easy for you to use codes to read blobs in storage account. Please refer to this example.