-
Notifications
You must be signed in to change notification settings - Fork 433
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Azure Blob trigger throws "hostAccount" : value cannot be null when Function app files are uploaded #1020
Comments
I just want to confirm, since the SO posts mentions, that you're creating this function app using an ARM template (automation). Is that correct? Or was the app created on the portal? |
No, I didn't use the ARM template. I used the New-AzureRmResource command with -kind parameter set to "functionapp". |
I see. I've added an answer on SO, but this is being caused by some missing environment settings that are required by the runtime. You can still split those operations, where you use an ARM template to provision the Function App with the settings it needs and use the Kudu API to then push the function if that's a workflow that works better for you. |
Thanks for the quick turn around. |
Thanks Fabio! I got to know that irrespective of whatever function that we create, a function app needs a storage account which is mandatory! I am closing this bug, since the rest of this part is about me to figure out, how to specify a storage account while creating a function app using "New-AzureRmResource" command. |
Please provide a succinct description of the issue.
"Function ($YourFunctionName) Error: Microsoft.Azure.WebJobs.Host: Error indexing method 'Functions.YourFunctionName'. Microsoft.Azure.WebJobs.Host: Value cannot be null. Parameter name: hostAccount. Session Id: xxxxxxxxxxx
Timestamp: 2016-12-02T18:35:00.083Z""
Expected behavior
The Function App should start triggering with the expected behavior
Actual behavior
Known workarounds
No workarounds as of now.
Related information
Found the code in this Git fork which throws the error: https://github.com/Azure/azure-webjobs-sdk/blob/dev/src/Microsoft.Azure.WebJobs.Host/Blobs/Triggers/BlobTriggerBinding.cs#L70
But I don't know where is this getting set.
But here is how my function.json looks like:
{
"bindings": [
{
"name": "blobParameterInMyFunctionApp",
"type": "blobTrigger",
"direction": "in",
"path": "storageContainerName",
"connection": "storageAccountName_STORAGE"
}
],
"disabled": false
}
The text was updated successfully, but these errors were encountered: