question

kn-5791 avatar image
0 Votes"
kn-5791 asked shashishailaj commented

Deployed function, runs fine locally, but on azure, need to have code= parameter to run?

I'm following this tutorial:
https://docs.microsoft.com/en-us/learn/modules/develop-test-deploy-azure-functions-with-visual-studio/5-exercise-publish-azure-functions

I can run the function fine on my local: http://localhost:7071/api/WatchInfo?model=abc

However, when publishing this to Azure, I need to have code parameter for it to work: https://grabdataiii2xxxxxxx2244.azurewebsites.net/api/WatchInfo?code=0L33RR94lOgE8O7ZLMeHCgA8oYxxxxxKbeu918GOuKAw2YU1v4Q==&model=abc

According to the tutorial, this was supposed to work: https://grabdataxxxxxx232244.azurewebsites.net/api/WatchInfo?model=abc

Otherwise, it would not run? Any ideas why?

Here's the code:
106419-image.png


azure-functions
image.png (39.6 KiB)
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

kn-5791 avatar image
1 Vote"
kn-5791 answered shashishailaj commented

AuthorizationLevel needed to be: AuthorizationLevel.Anonymous

· 1
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.

@kn-5791 , Thank you for sharing your solution with the community . We appreciate your contribution.

0 Votes 0 ·