azure
azure copied to clipboard
Public IPs from Azure Scale Sets not shown on ansible-inventory
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
@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?
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.
I have the same issue here. The VMSS VM has a public ip address but is not showing in the inventory