# Ansible Tower - MS Azure RM Credentials

**URL:** <https://forum.ansible.com/t/ansible-tower-ms-azure-rm-credentials/28667>\
**Category:** Ansible Developer\
**Tags:** azure\
**Created:** [September 27, 2018, 5:38pm UTC](https://forum.ansible.com/t/ansible-tower-ms-azure-rm-credentials/28667 "2018-09-27T17:38:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AnsibleDev](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@AnsibleDev](https://forum.ansible.com/u/AnsibleDev)\
**Post date:** [September 27, 2018, 5:38pm UTC](https://forum.ansible.com/t/ansible-tower-ms-azure-rm-credentials/28667/1 "2018-09-27T17:38:55Z")

</div>

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](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.
