I have webjob with service bus trigger. Things works fine. I was expecting a running webjob to throw exception when I regenerate the primary key which is used to create the service bus config during the start up of webjob.
Basically I do not want my webjob to run continuously if a service connection string is made invalid post running. The problem here is, webjob continuously runs but it does not respond or methods in functions with the service bus trigger attribute does not get invoked for any new messages in queue or topic post 20 minutes regenerating the service bus key. When a storage or dashboard connection string become invalid, it throws the error. Why is servicebus thing not having the same behaviour.