# GCP IAP Connectivity for Windows VM instance

**URL:** <https://forum.ansible.com/t/gcp-iap-connectivity-for-windows-vm-instance/44959>\
**Category:** Get Help\
**Tags:** windows, gcp, awx\
**Created:** [December 5, 2025, 12:58pm UTC](https://forum.ansible.com/t/gcp-iap-connectivity-for-windows-vm-instance/44959 "2025-12-05T12:58:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![prateektl](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/prateektl/32/8985_2.png) [@prateektl](https://forum.ansible.com/u/prateektl)\
**Post date:** [December 5, 2025, 12:58pm UTC](https://forum.ansible.com/t/gcp-iap-connectivity-for-windows-vm-instance/44959/1 "2025-12-05T12:58:04Z")

</div>

Has anyone successfully executed a awx job template run for the inventory which consist of GCP windows VM host?

My Execution Instance is a GCP linux [rhel9] vm instance which has been attached to AWX. I have a service account in GCP which has the IAP related role enabled. Not sure what else is required to make the playbook execution successful.

Any information will be of great help

---

<div class="post-metadata">

**Author:** ![anon81884396](https://avatars.discourse-cdn.com/v4/letter/a/b782af/32.png) [@anon81884396](https://forum.ansible.com/u/anon81884396)\
**Post date:** [December 5, 2025, 1:12pm UTC](https://forum.ansible.com/t/gcp-iap-connectivity-for-windows-vm-instance/44959/2 "2025-12-05T13:12:25Z")

</div>

Is there something different about GCP Windows servers than a Windows server running anywhere else?

It would be a good idea to post error messages, logs, or a basic description of what problem you’re encountering.

---

<div class="post-metadata">

**Author:** ![prateektl](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/prateektl/32/8985_2.png) [@prateektl](https://forum.ansible.com/u/prateektl)\
**Post date:** [December 10, 2025, 9:18am UTC](https://forum.ansible.com/t/gcp-iap-connectivity-for-windows-vm-instance/44959/3 "2025-12-10T09:18:59Z")

</div>

In GCP, we need to use IAP - [Identity-Aware Proxy] to enable a tunnel for secure connectivity. Now this is not something which is present for AWS, or VM based Windows hosts. Usage of IAP for Linux hosts requires a wrapper script in the ansible environment to run the ansible-tasks. So is there something similar setup that is required for windows hosts?

Note majority of our linux and windows hosts has no public IP address.

> **[GCP IAP Tunnelling on Ansible with Dynamic Inventory](https://www.bionconsulting.com/blog/gcp-iap-tunnelling-on-ansible-with-dynamic-inventory)**
>
> There's a great feature in GCP that you can use to connect instances and/or apps in the private network without installing a VPN solution. In this blog post, I'll go through every step of the configuration with detailed explanations.

> **[The Hidden Tax You Are Paying Every Day: A Dev's Journey into Ops Automation](https://dev.to/empire/the-hidden-tax-you-are-paying-every-day-a-devs-journey-into-ops-automation-5f80)**
>
> Starting a new career is kinda like walking into a workshop full of tools you've never seen before....
