# gcp\_compute plugin showing auth failure

**URL:** <https://forum.ansible.com/t/gcp-compute-plugin-showing-auth-failure/28950>\
**Category:** Ansible Project\
**Tags:** gcp\
**Created:** [November 5, 2018, 10:34pm UTC](https://forum.ansible.com/t/gcp-compute-plugin-showing-auth-failure/28950 "2018-11-05T22:34:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Murali\_Krishna](https://avatars.discourse-cdn.com/v4/letter/m/5f9b8f/32.png) [@Murali\_Krishna](https://forum.ansible.com/u/Murali_Krishna)\
**Post date:** [November 5, 2018, 10:34pm UTC](https://forum.ansible.com/t/gcp-compute-plugin-showing-auth-failure/28950/1 "2018-11-05T22:34:24Z")

</div>

##### SUMMARY

I am using gcp\_compute plugin as a inventory source. While on local machine it is working fine but when I try to use this same inventory on GCP VM it is showing

> # ansible-inventory -i ./inventory/gcompute.gcp.yaml --graph
> 
> [WARNING]: \* Failed to parse /inventory/gcompute.gcp.yaml with gcp\_compute plugin: Service Acccount Email only works with Machine Account-based authentication

can somebody tell me how to resolve this

Thanks
