Not able to fetch ansible inventary list from azure cloud

shyam@DESKTOP-OO7EVK2:~/ansible-project$ **ansible-inventory --list**
[WARNING]: Collection azure.azcollection does not support Ansible version 2.15.13
[WARNING]:  * Failed to parse /home/shyam/ansible-project/azure_rm.yml with
ansible_collections.azure.azcollection.plugins.inventory.azure_rm plugin: name 'azure_cloud' is not defined
[WARNING]:  * Failed to parse /home/shyam/ansible-project/azure_rm.yml with auto plugin: name 'azure_cloud' is not defined
[WARNING]:  * Failed to parse /home/shyam/ansible-project/azure_rm.yml with yaml plugin: Plugin configuration YAML file, not YAML inventory 
[WARNING]:  * Failed to parse /home/shyam/ansible-project/azure_rm.yml with ini plugin: Invalid host pattern 'plugin:' supplied, ending in  
':' is not allowed, this character is reserved to provide a port.
[WARNING]: Unable to parse /home/shyam/ansible-project/azure_rm.yml as an inventory source
[WARNING]: No inventory was parsed, only implicit localhost is available
{
    "_meta": {
        "hostvars": {}
    },
    "all": {
        "children": [
            "ungrouped"
        ]
    }
}

here is my inventary plugin file:

plugin: azure.azcollection.azure_rm
include_vm_resource_groups:
  - NextOpsRG03
auth_source: auto
keyed_groups:
  - prefix: tag
    key: tags
hostnames:
  - public_ip_address

I set up all env varibales but still failing with above error

This might be related: name 'azure_cloud' is not defined · Issue #1339 · ansible-collections/azure · GitHub

You might want to run ansible-inventory with more verbosity to find out more precisely where the name 'azure_cloud' is not defined error comes from. My guess (from some of the tracebacks in that issue) is that azure/plugins/module_utils/azure_rm_common.py at dev · ansible-collections/azure · GitHub is ultimately not there, which is likely connected to the azure’s Python library’s version you have installed.