I'm writing a Power Shell based Azure Function App and have a requirement to output a HTML file to a storage blob.
I'm using the External File Output through the Function Apps Integrate Menu.
I run the following code to output the HTML to a file.
Out-file -FilePath $outputFile -InputObject $html -Encoding ascii
Unfortunately, when I link directly to the file the browser downloads the HTML file rather than displaying it. I believe this is some type of Content type issue. When I open the downloaded file the browser then displays it properly.
I've provided a picture of the output file (result.html) in azure storage explorer below Image of file