When an Azure webjob is running, listening to an Azure storage queue, will static variables declared in the job remain in memory throughout the lifetime of the webjob (until the webjob is restarted)? If I declare them in the Functions.cs file - ProcessQueueMessageAsync method, will they remain in memory throughout subsequent queue triggers?
Yes, it is.
I didn't find any official doc about it, but it's easy to test it out. Please refer to the screenshot as below: