Azure-docs: Lab no longer works

Created on 4 Dec 2018  Â·  8Comments  Â·  Source: MicrosoftDocs/azure-docs

Hi, I've followed the instructions closely but do not see any thumbnails appearing within my thumbnail container when using the .NET function code. I do not see any error messages either, so am finding it hard to debug why it is not working. Within the Thumbnail console, I can see the EventGrid trigger fires succesfully, and images manually uploaded into the thumbnail container are being displayed within the webapp. Also when I attempt to deploy the function with the Node.js code, I receive the error message "Function (Thumbnail) Error: Sequence contains more than one matching element." when on step 2 of section 'Create an event subscription' above.


Document details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

assigned-to-author doc-bug event-grisvc triaged

Most helpful comment

Hi, I found the solution to the problem on Stack Overflow requiring some
small tweaks to the Function code:
https://stackoverflow.com/questions/53313094/azure-function-triggered-by-eventgrid-on-blob-storage

Regards
Ian

On Wed, 5 Dec 2018 at 16:00, Matthew Altieri notifications@github.com
wrote:

I fixed this by going to the Access policy settings for each blob
container and set the public access level to "Blob (anonymous read access
for blobs only)" and this solved the issue for me. Not sure if that's the
wisest solution, but it worked for me.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/azure-docs/issues/19947#issuecomment-444538009,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AV9hs37ZRz_ohJTCLzAUwfC1-Jqnajuhks5u1-2cgaJpZM4ZAhn7
.

All 8 comments

@ianpurvis1976 Thanks for the feedback! We will investigate and get back to you on this.

I fixed this by going to the Access policy settings for each blob container and set the public access level to "Blob (anonymous read access for blobs only)" and this solved the issue for me. Not sure if that's the _wisest_ solution, but it worked for me.

Hi, I found the solution to the problem on Stack Overflow requiring some
small tweaks to the Function code:
https://stackoverflow.com/questions/53313094/azure-function-triggered-by-eventgrid-on-blob-storage

Regards
Ian

On Wed, 5 Dec 2018 at 16:00, Matthew Altieri notifications@github.com
wrote:

I fixed this by going to the Access policy settings for each blob
container and set the public access level to "Blob (anonymous read access
for blobs only)" and this solved the issue for me. Not sure if that's the
wisest solution, but it worked for me.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/azure-docs/issues/19947#issuecomment-444538009,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AV9hs37ZRz_ohJTCLzAUwfC1-Jqnajuhks5u1-2cgaJpZM4ZAhn7
.

@MattAltieri Thanks for pointing this out! This tutorial builds up on the previous storage account tutorial in which the second container (thumbnails) is created with container access (a bit higher than blob).
The contents are meant to be public (for this tutorial at least), so the access setting is valid.

@ianpurvis1976 Glad you got it resolved and thanks for sharing the SO post as well. It would help others too in the meantime while we fix the doc. 😄

We have assigned this issue to the content author to review and update accordingly.

I could also get it to work by modifying the following command to use the variable names to match what's in the function code;

az functionapp config appsettings set --name $functionapp --resource-group $resourceGroupName --settings AzureWebJobsStorage=$storageConnectionString THUMBNAIL_CONTAINER_NAME=thumbnails THUMBNAIL_WIDTH=100 FUNCTIONS_EXTENSION_VERSION=~2

please-close

@PramodValavala-MSFT - I own the content for Event Grid service now. Please close the issue. Thanks.

Was this page helpful?
0 / 5 - 0 ratings