dears, 

after adding credentials to Ansible to connect to azure from Azure Resource 
Manager (Sub ID, Cliend ID....) i m facing below error when trying to run 
the job:

  ansible-inventory [core 2.12.6]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/home/runner/.ansible/plugins/modules', 
'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.8/site-packages/ansible
  ansible collection location = 
/home/runner/.ansible/collections:/usr/share/ansible/collections:/usr/share/automation-controller/collections
  executable location = /usr/bin/ansible-inventory
  python version = 3.8.12 (default, Sep 16 2021, 10:46:05) [GCC 8.5.0 
20210514 (Red Hat 8.5.0-3)]
  jinja version = 2.10.3
  libyaml = True
Using /etc/ansible/ansible.cfg as config file
redirecting (type: inventory) ansible.builtin.azure_rm to 
azure.azcollection.azure_rm
[WARNING]:  * Failed to parse /runner/inventory/azure_rm.yml with auto 
plugin:
a batched request failed with status code 403, url 
/subscriptions/cf487487-fa5e
-49cc-90a3-a6-----------------/providers/Microsoft.Compute/virtualMachines
  File "/usr/lib/python3.8/site-packages/ansible/inventory/manager.py", 
line 290, in parse_source
    plugin.parse(self._inventory, self._loader, source, cache=cache)
  File 
"/usr/lib/python3.8/site-packages/ansible/plugins/inventory/auto.py", line 
58, in parse
    plugin.parse(inventory, loader, path, cache=cache)
  File 
"/usr/share/automation-controller/collections/ansible_collections/azure/azcollection/plugins/inventory/azure_rm.py",
 
line 219, in parse
    self._get_hosts()
  File 
"/usr/share/automation-controller/collections/ansible_collections/azure/azcollection/plugins/inventory/azure_rm.py",
 
line 276, in _get_hosts
    self._process_queue_batch()
  File 
"/usr/share/automation-controller/collections/ansible_collections/azure/azcollection/plugins/inventory/azure_rm.py",
 
line 418, in _process_queue_batch
    raise AnsibleError("a batched request failed with status code {0}, url 
{1}".format(status_code, result.url))
[WARNING]: Unable to parse /runner/inventory/azure_rm.yml as an inventory
source
ERROR! No inventory was parsed, please check your configuration and options

-- 
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/8c340acf-b1b3-4fcd-8b64-bc3145167380n%40googlegroups.com.

Reply via email to