Powershell Function: Blob output set content-type?

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

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.
2,572 questions
No comments
{count} votes

1 answer

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

    @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.

    No comments