When running any cloud tool powershell command inside a GCE instance (successful or unsuccessful), I'm running into this error which always follows with the powershell session crashing. (Running equivalent commands with gcloud do not error, it is just Cloud Tools for Powershell)
For example, when executing the command below it successfully writes a log to cloud logging which I can query, but will still follow with an error and crash.
New-GcLogEntry -LogName "my-log" -TextPayload "This is a log entry."
From the error message, it looks like it may be due to an exception when sending data to the Cloud Monitoring API after running a command.
Google Cloud SDK Version
Cloud Tools for Powershell Version
Issue
When running any cloud tool powershell command inside a GCE instance (successful or unsuccessful), I'm running into this error which always follows with the powershell session crashing. (Running equivalent commands with gcloud do not error, it is just Cloud Tools for Powershell)
For example, when executing the command below it successfully writes a log to cloud logging which I can query, but will still follow with an error and crash.
From the error message, it looks like it may be due to an exception when sending data to the Cloud Monitoring API after running a command.