Async/Await and EventHub triggers

If you’ve got a WebJob with a trigger function for an EventHub, make certain nothing is Async/Await because this will result in the attempted processing of messages which have already been disposed.

Best thing to do with a good EDA is to do it without Async but make it as lightweight as possible by offloading processing to an Event Consumer downstream.

Reconnect network drive at startup

Create a Scheduled Task which executes this script as a batch file:

@echo off

timeout /t 5 /nobreak >NUL
if exist S:\NUL goto End
net use s: \\THE_NETWORK_PATH /USER:<user name> <password> /P:YES
if ERRORLEVEL 1 goto Start