I have a serverless powershell function that creates image data from an algorithm and stores it in a $buffer
. I'd like to save this $buffer
to a blob container as foobar.png. However, Set-AzStorageBlobContent reads from a file, and all the examples I have found involve saving a temporary file to local disk (which I don't have the ability to do in a serverless environment).
Anyone have an example of the best way to do this?
CodePudding user response:
You can use New-TemporaryFile in Azure functions as there is still technically a disk on the app service.
I posted an example here: