Ansible Tower - MS Azure RM Credentials

Hi,

I was trying out the Azure sample programs through ansible playbook and one of them is provided in the below link.
https://github.com/Azure-Samples/ansible-playbooks/blob/master/vm_create.yml

I was able to create the VM by following the steps mentioned in the above link README.md file by using ansible-playbook command.

I was trying to execute the same playbook vm_create.yml through Ansible Tower by setting the same environment variables in Credentials link in Tower by choosing “Microsoft Azure Resource Manager” Credential type and setting the Job. But I have been getting the below error always. I tried reinstalling ansible[azure] too but still the same error.

"fatal: [localhost]: FAILED! => {“changed”: false, “msg”: “Do you have azure>=2.0.0 installed? Try pip install ansible[azure]- cannot import name MSIAuthentication”}

PLAY RECAP"

Please let me know the cause of this error and guide on how to fix the above error in Ansible Tower.

Thanks.