I am new to Azure.
I need to develop a feature using Azure storage queue that triggers Azure function and has references to data in storage table. And I have to see the result in Azure function logs.
It takes quite some time (maybe 1 minute or 2) to deploy Azure function from VSCode to Azure cloud. Besides, the corresponding logs only appear several minutes (maybe 5 minutes) after I test the feature.
Just imagine that I add one more line for logging: I will have to wait for 10 minutes to see the result. This is really inefficient for development.
Is there any way I can speed up my development flow in the scenario above?
CodePudding user response:
You can use azure devops and setup build pipelines that builds and deploys automatically when you commit to the repo, this is normally faster than deploying directly.
As for the logs I am assuming you are referring to the logs in the monitor blade of the function or the logs in application insights which will have a lag of a few minutes but you always have the option to test your functions and use log streaming to see the logs directly in real time, or use the app insights real time view as well and see events as they happen in real time.
CodePudding user response:
As you mentioned, for the logs/function invocations to appear in the monitor section may be delayed for upto 5 minutes. This is an expected behavior and it is mentioned in the portal

If you are looking for the logs to appear instantaneously, you can switch to logs tab in the same monitor section which displays the log streaming service
If you add another log also, it appears instantaneously and it only takes seconds time:

