azure icon indicating copy to clipboard operation
azure copied to clipboard

Public IPs from Azure Scale Sets not shown on ansible-inventory

Open stevenspinoza opened this issue 2 years ago • 1 comments

SUMMARY

Hey guys, I try to get public Ips from my azure scale sets using ansible-inventory, but the output is empty, even though on azure they are shown, thanks. See images

ISSUE TYPE
  • Bug Report
COMPONENT NAME

ansible/plugins/inventory/azure_rm.py

ANSIBLE VERSION
2.13.1
COLLECTION VERSION
1.13.0
OS / ENVIRONMENT

Ubuntu 22.04 LTS

EXPECTED RESULTS

Public IPs shown when run ansible-inventory

ACTUAL RESULTS

image image image image

stevenspinoza avatar Jul 20 '22 02:07 stevenspinoza

@stevenspinoza You are welcome to submit your problems? Before you get the VMSS instance information, can you verify that your instance VM is also configured with a public IP address?

Fred-sun avatar Aug 04 '22 02:08 Fred-sun

Can confirm this is also an issue for me. Public IP address is assigned to the VM, I can access the VM via the public IP address.

It seems as though azure doesn't assign a public ip address id pip_id = ipc['properties'].get('publicIPAddress', {}).get('id') and because of this no public ip information is populated.

kingsleyadam avatar Mar 15 '23 13:03 kingsleyadam

I have the same issue here. The VMSS VM has a public ip address but is not showing in the inventory

emoshaya avatar Aug 22 '23 11:08 emoshaya