<p>I am using VS Code with Google's Cloud Code plugin. I was using my personal email address which is tied to a personal instance of Google Cloud. I was given a sandbox instance of Google Cloud for a project at work. Although I have logged into Google Cloud with my work email address, whenever I try to run my project with Cloud Code in a Kubernetes development session, an error is logged about permissions referencing my personal account. I believe this is because VS Code is somehow stuck with my personal email address.</p>
<p>I tried logging out of all accounts from the VS Code command pallet to no avail.</p>
<p>How do I resolve this?</p>
<p>Here is the error in GCP logging. I was clued in that it was my personal account's email address because of the logging entry's label: <code>principal_email: my_personal@email.address</code>. Naturally, my personal email address is not part of my work's GCP instance, therefore the permissions issue.</p>
<pre class="lang-js prettyprint-override"><code>{
insertId: &quot;redacted&quot;
logName: &quot;projects/redacted/logs/cloudaudit.googleapis.com%2Factivity&quot;
protoPayload: {
@type: &quot;type.googleapis.com/google.cloud.audit.AuditLog&quot;
authenticationInfo: {1}
authorizationInfo: [2]
metadata: {1}
methodName: &quot;storage.buckets.create&quot;
requestMetadata: {4}
resourceLocation: {1}
resourceName: &quot;projects/_/buckets/redacted&quot;
serviceName: &quot;storage.googleapis.com&quot;
status: {1}}
receiveTimestamp: &quot;2022-09-09T12:07:41.184289826Z&quot;
resource: {2}
severity: &quot;ERROR&quot;
timestamp: &quot;2022-09-09T12:07:40.135804318Z&quot;
}
</code></pre>
<p>I apologize if this is the wrong stack exchange for this question. If so, please direct me to the right one.</p>

Dshiz
<p><strong>According with @Dshiz the solution was:</strong></p>
<blockquote>
<p>It was definitely some kind of corruption of the plugin. I
uninstalled/reinstalled it, then signed out and back in via the
plugin's Help and Feedback menu (which coincidentally was missing
before reinstall), and the error cleared.</p>
</blockquote>
