Azure-functions-host: Function cannot write to $web container

Created on 13 Dec 2018  路  7Comments  路  Source: Azure/azure-functions-host

Investigative information

Please provide the following:

  • Timestamp: 13:41 AWST, 13/12/2018
  • Function App version (1.0 or 2.0): 2.0.12210.0
  • Invocation ID: 42aebb5b-0ac4-44e4-b383-d68f59f4c555
  • Region: Australia Southeast

Repro steps

Provide the steps required to reproduce the problem:

  1. Create a Function 2.0
  2. Create a GPv2 storage account
  3. Setup a static website within the GPv2 storage
  4. Attempt to use the Azure Blob Storage output method within the function to the new $web container

Alternatively set function to be triggered by $web, function will not run at all and no errors appear.

Expected behavior

Provide a description of the expected behavior.

Function should output a blob to the $web container with no issues.

Actual behavior

Function throws error message:

*** [Error] Executed 'Functions.****' (Failed, Id=***)
Validation failed for property 'BlobPath', value '$web/index.html'. The field BlobPath is invalid.

Known workarounds

Use the Node.js preview library and upload the blob within the function itself.

Related information

Provide any related information

  • Programming language used: Javascript
  • Screenshot of config
    Screenshot of configuration

Most helpful comment

The same applies to C# (runtime 2.0.12246.0, NuGet package v3.0.2).

All 7 comments

The same applies to C# (runtime 2.0.12246.0, NuGet package v3.0.2).

Just hit this myself C# .NET Core 2.2, NuGet package v3.0.6

Any movement on this? I just hit this issue with a JavaScript function. Runtime version: 2.0.12641.0

@3xj Doesn't seem to be anything, I had to rewrite the output functionality to get my function to work.

Adding my +1, seems this isn't moving very fast.

It's been reported here too: #3804.

It's working fine if you upgraded to lastes version of the nuget package for example "Microsoft.Azure.WebJobs.Extensions.Storage" Version="4.0.4"

Was this page helpful?
0 / 5 - 0 ratings