azure services used module local variables!!

changed to objects to correctly manage state