Wrap azdo check into a function call