'Consistent method of waiting on and retrieving results from Azure\'s long poller
:param poller Azure poller object
:return object resulting from the original request'

def get_poller_result(self, poller, wait=5):

    try:
        delay = wait
        while (not poller.done()):
            self.log('Waiting    for    {0}    sec'.format(delay))
            poller.wait(timeout=delay)
        return poller.result()
    except Exception as exc:
        self.log(str(exc))
        raise
