question

AndreaMcCool-3591 avatar image
0 Votes"
AndreaMcCool-3591 asked PramodValavala-MSFT answered

Powershell Function: Blob output set content-type?

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

PramodValavala-MSFT avatar image
0 Votes"
PramodValavala-MSFT answered

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


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.