Run ansible on SLES VM

I have created a SLES VM on azure ,Create method as this link: https://docs.microsoft.com/en-us/azure/virtual-machines/linux/ansible-install-configure
but, when ran ansible playbook to create a resource group ,it will meet error, error info as below:
create resource group:

  • name: create resource goup
    azure_rm_resourcegroup:
    name: myRG
    location: eastus

Error info:
fatal: [localhost]: FAILED! => {“changed”: false, “msg”: “Do you have azure>=2.0.0 installed? Try pip install ansible[azure]- No module named mgmt.network.version”}

Who could help to fix this issue, Thanks a lot!

try

pip install azure>=2.0.0 --upgrade

I have upgrade azure version as this command ( pip install azure>=2.0.0–upgrade) ,Bit it cannot fixed this error (“No module named mgmt.network.version”)

在 2018年6月14日星期四 UTC+8下午2:10:29,sunguo…@gmail.com写道: