# unable to resolve inventory\_hostname via azure dynamic inventory on windows hosts execution

**URL:** <https://forum.ansible.com/t/unable-to-resolve-inventory-hostname-via-azure-dynamic-inventory-on-windows-hosts-execution/29502>\
**Category:** Ansible Project\
**Tags:** azure, windows\
**Created:** [January 23, 2019, 11:41am UTC](https://forum.ansible.com/t/unable-to-resolve-inventory-hostname-via-azure-dynamic-inventory-on-windows-hosts-execution/29502 "2019-01-23T11:41:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dhruv\_Bansal](https://avatars.discourse-cdn.com/v4/letter/d/3ec8ea/32.png) [@Dhruv\_Bansal](https://forum.ansible.com/u/Dhruv_Bansal)\
**Post date:** [January 23, 2019, 11:41am UTC](https://forum.ansible.com/t/unable-to-resolve-inventory-hostname-via-azure-dynamic-inventory-on-windows-hosts-execution/29502/1 "2019-01-23T11:41:14Z")

</div>

Ansbile version 2.5.1.1  
while executing ansible playbook via dynamic inventory of azure failing in resolving inventory\_hostname in the wsman url. if i try to resolve hosts via local inventory file it is working absolutly fine

\<inventory\_hostname\> WINRM CONNECT: transport=kerberos endpoint=https://inventory\_hostname:5986/wsman  
\<inventory\_hostname\> WINRM CONNECTION ERROR: authGSSClientStep() failed: ((‘Unspecified GSS failure. Minor code may provide more information’, 851968), (‘Server nound in Kerberos database’, -1765328377))

If the File “/home/adminuser/.local/lib/python2.7/site-packages/ansible/plugins/connection/winrm.py”,

remote\_addr changed in this module to hostname of windows machine, it starts working absolutly fine.
