Hi,
You can download the file contents into memory via DownloadText()
method:
#Get Storage Account context
$context = New-AzStorageContext -StorageAccountName "<storage-account>" -SasToken "<sas-token>" # or -StorageAccountKey, you can use your preferred method for authentication
#Get reference for container
$container = Get-AzStorageContainer -Name "<container-name>" -Context $context
#Get reference for file
$client = $container.CloudBlobContainer.GetBlockBlobReference("<file-name>")
#Read file contents into memory
$file = $client.DownloadText()
This is possible because Get-AzStorageContainer
returns an "AzureStorageContainer" object.
Azure SDK reference for the method.
BR,
Peter