Updated Azure to accept subject_function as string

+ Updated tests