NameError: global name 'VirtualMachineSizeTypes' is not defined

Hi,

I’am trying to run a playbook from a Rhel server in AWS to deploy a Rhel instance in Azure. But, I’m getting the following error,

The full traceback is:
Traceback (most recent call last):
File “/tmp/ansible_aD_HJH/ansible_module_azure_rm_virtualmachine.py”, line 1309, in
main()
File “/tmp/ansible_aD_HJH/ansible_module_azure_rm_virtualmachine.py”, line 1306, in main
AzureRMVirtualMachine()
File “/tmp/ansible_aD_HJH/ansible_module_azure_rm_virtualmachine.py”, line 513, in init
for key in VirtualMachineSizeTypes:
NameError: global name ‘VirtualMachineSizeTypes’ is not defined

fatal: [localhost]: FAILED! => {
“changed”: false,
“failed”: true,

Anyone able to point me in the right direction to fix this problem please?

Thanks
Krish