Hi there,
I have an issue with my Azure function or to be more specific, with deploying and having it function in the Azure Portal.
The Function is a BlobTrigger and works fine locally, I used the following guide / link: Develop Azure Functions locally using Core Tools.
When running the following command: func azure functionapp publish
It deploys to my function app in the portal fine, I have also published it with --local-settings
.
However, when I am 'running' the function in the portal, it does not run anything. There is no Invocations (not an error) and no Application Insights.
I am wondering whether I included all the correct environment variables in the Portal, but I figured when publishing it with --local-settings
this should take care of it? Therefore I have the following questions:
- Which environment variables should I declare in the portal, currently the only environment variables in the portal are: APPLICATIONINSIGHTS_CONNECTION_STRING, AzureWebJobsStorage and FUNCTIONS_WORKER_RUNTIME. Are these the correct variables? Should there be more?
- In the local script, I also declare (and call) a variable for AzureWebJobsStorage, could this interfere with the environment variable in the function in the portal? Because it shouldn't; the variables have the same string/value.
Let me know if anything is unclear.