Port azure_rm_common.py to py3 syntax (#15880)
Port azure_rm_common.py to py3 syntax (#15880)

Since the rest of the file already use a non 2.4 syntax
(such as format), I didn't bother using the 2.4 syntax for
exceptions.
thaim/ansible,thaim/ansible