Powershell Function: Blob output set content-type?

Andrea McCool 1 Reputation point
2021-04-29T20:06:37.673+00:00

Is it possible to configure the content-type (and other attributes, I suppose) of a blob created through a powershell Azure Function? Is it possible to do this via binding configuration, or in the powershell script?

Seems to default to 'application/octetstream' regardless of output blob content - I would like to be able to specify content type such as 'text/html' or 'application/pdf' etc.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,261 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Pramod Valavala 20,516 Reputation points Microsoft Employee
    2021-05-03T17:17:18.57+00:00

    @Andrea McCool While the output binding doesn't support this, you should be able to use the Az.Storage PowerShell Module directly to achieve the same.

    0 comments No comments