Revert "Adapting to new Azure API"

This reverts commit 0b6b39893699151e2e30e7b247bba2e09cf02cc8.