azure_rm_virtualmachine_facts not working to search on Tags

I am having trouble working with this module. The requirement is to search all the VMs irrespective of their resource groups based on the tags applied to VMs. The module documentation here says
`
resource_group : Name of the resource group containing the virtual machines (required when filtering by vm name).

`

It’s throwing me error from one of the files - /.local/lib/python2.7/site-packages/azure/mgmt/compute/compute/v2017_03_30/operations/virtual_machines_operations.py from azure-sdk-for-python:

`
File "/home/svc_ucoansible/.local/lib/python2.7/site-packages/azure/mgmt/compute/compute/v2017_03_30/operations/virtual_machines_operations.py", line 664, in internal_paging\n ‘resourceGroupName’: self._serialize.url("resource_group_name", resource_group_name, ‘str’),\n File "/home/svc_ucoansible/.local/lib/python2.7/site-packages/msrest/serialization.py", line 488, in url\n data = self.validate(data, name, required=True, **kwargs)\n File "/home/svc_ucoansible/.local/lib/python2.7/site-packages/msrest/serialization.py", line 558, in validate\n raise ValidationError("required", name, True)\nmsrest.exceptions.ValidationError: Parameter ‘resource_group_name’ can not be None.\n",
“module_stdout”: “”,
“msg”: “MODULE FAILURE\nSee stdout/stderr for the exact error”,
“rc”: 1

`

Can somebody please help here ?