You should always take a look at the requirements for each module in 
collection:
https://docs.ansible.com/ansible/latest/collections/azure/azcollection/azure_rm_virtualmachine_info_module.html

The error is refering to missing python module. 
Have you installed azure sdk for python version 2.0 or higher?? 
Run:

pip list 

See if azure is on the list. 
If not, try  and run:

pip install azure   

If that doesn't help, let me know. 

Dana srijeda, 7. listopada 2020. u 13:09:37 UTC+2 korisnik 
nbmp...@gmail.com napisao je:

> Hi,
>
> I find it impossible to find good guides on how to switch to ansible 2.10 
> and use galaxy collections. 
>
> SUMMARY
>
> Installed Ansible 2.10 and collection azure.azurecollection. I am unable 
> to get Ansible 2.10 working with collections for my existing playbooks.
> COMPONENT NAME
>
> azure_rm_virtualmachine_info
> ANSIBLE VERSION
> 2.10.2 
>
> STEPS TO REPRODUCE
> - hosts: localhost gather_facts: no collections: - azure.azcollection
>
> ACTUAL RESULTS
> An exception occurred during task execution. To see the full traceback, 
> use -vvv. The error was: ModuleNotFoundError: No module named 
> 'azure.mgmt.monitor.version' fatal: [127.0.0.1]: FAILED! => {"changed": 
> false, "msg": "Failed to import the required Python library (ansible[azure] 
> (azure >= 2.0.0)) on ansible-test's Python /usr/bin/python3. Please read 
> the module documentation and install it in the appropriate location. If the 
> required library is installed, but Ansible is using the wrong Python 
> interpreter, please consult the documentation on 
> ansible_python_interpreter"} 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/6f961d6c-3dac-4524-8020-e61b8013b783n%40googlegroups.com.

Reply via email to