I followed the Microsoft how-to to create a function that triggers when a file is added to a specific blob storage container. I have completed the how-to, and repeated it in case I did something wrong, but no log showed up when I added a file to the container manually. So I found this question:
Azure function apps logs not showing
but nothing suggested there showed logs either. I then found I should use the built in run/test feature in the portal, and it gave me the error:
2020-11-25T03:11:04.271 [Error] Executed 'Functions.BlobTrigger1' (Failed, Id=407e0495-dd12-4e7a-be74-fa1e33ff7368, Duration=8ms)The specified container does not exist.
I have looked at forum posts addressing this problem, and I can't find anything or how to apply it to this simple function. The function code is as follows.
run.csx:
public static void Run(Stream myBlob, string name, ILogger log)
{
log.LogInformation($"C# Blob trigger function Processed blob\n Name:{name} \n Size: {myBlob.Length} Bytes");
}
function.json:
{
"bindings": [
{
"name": "myBlob",
"type": "blobTrigger",
"direction": "in",
"path": "samples-workitems/{name}",
"connection": "AzureWebJobsStorage"
}
]
}
Other answers are also quite old and so the portal set up is different and I can't find some things suggest. I am also using an educational account if that helps. Thanks in advance for any advice.