Using the Azure Resource Manager modules requires having specific Azure SDK modules installed on the host running Ansible.
$ pip install 'ansible[azure]'
If you are running Ansible from source, you can install the dependencies from the root directory of the Ansible repo.
$ pip install .[azure]