Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get blob storage content in powershell

I'm using Get-AzureStorageBlobContent command to get the blob which holds version of my app:

$latestDeployment = (Get-AzureStorageBlobContent -Blob app.version -Container container -Context $blobContext)

This command saves it as a file to the disk, while I would like to load it to memory and just read the content without saving anything. Is it possible using powershell?

like image 607
Bartosz Avatar asked Oct 16 '25 16:10

Bartosz


1 Answers

This should work

$latestDeploymentBlob = Get-AzureStorageBlob -Blob app.version -Container $container -Context $blobContext 
$latestDeployment = $latestDeploymentBlob.ICloudBlob.DownloadText()
like image 85
x5657 Avatar answered Oct 19 '25 06:10

x5657



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!