Given that stop and delete buttons are next to each other it’s the second Workbench instance that I mistakenly deleted.
I know that I can enable this feature for VM machines but whenever
I click on instance name → System → VM details and then click on View in Compute Engine and I try to edit enabling the delete protection I got the following error.
Editing VM instance "MY-INSTANCE" failed. Error: Required 'Current principal doesn't have permission to mutate this resource!' permission for 'MY-INSTANCE'
We try using different service accounts /users and adding permission without much luck.
I get the very same error when I’m trying to set Keep disk as Deletion rule.
This is very unconvinient. I know I could set snapshots but these simple features would be great
Each Workbench instance has a service account associated with it. Your account is the one that actually manages the underlying VM, it also requires the proper permission to enable delete protection. You need to determine your account.
Here’s how to do it:
Get the Workbench Service Account Email:
In the Workbench UI, navigate to your instance.
Go to “System” → “VMdetails”.
Look for the “ServiceAccount” field. Copy the email address of the service account. It should look like:
This will output true if enabled, false otherwise. Alternatively, you can view it in the Compute Engine UI under VM Instances, select your instance, and the deletion protection status will be visible in the Summary.
Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.