I am unable to delete instance-20240320-201528. I guess it got created while I was trying to pass on the SSH key and enter the wrong user name by mistake.
Please suggest how to delete this instance. I tried deleting it but got the message ( Failed to delete instance-20240320-201528: Required Current principal doesn’t have permission to mutate this resource!’ permission)
Editing VM instance “instance-20240320-201528” failed. Error: Required ‘Current principal doesn’t have permission to mutate this resource!’ permission for ‘instance-20240320-201528’
Hello @rajeevranjan-1 ,Welcome on Google Cloud Community.
It looks like this VM has been created for Vertex AI. So following error, it means that you or ServiceAccount does not have permissions to remove this VM.
Please try to assign for your Service Account associated with this instance :
Vertex AI Service Agent IAM role / (roles/aiplatform.serviceAgent)
or
AI Platform Notebooks Service Agent / (roles/notebooks.serviceAgent)
If this VM wasn’t created for Vertex AI, please ensure that you and your ServiceAccount attached to your VM have IAM permissions:
Thanks for the quick response.I tried all the possibilities you mentioned. but I end up getting the same ERROR message "Required Current principal doesn’t have permission to mutate this resource!’ permission) "
please find the attached screenshot , I have tried assigning the roles you suggested.
I tried giving the permission through service account.. Do you recommend the command that I can use to assign permission to user (PII Removed by Staff). What all role does it need.?
Unable to perform the VM delete option even i have owner permission in Org level
Please guide me how to fix the error
“Failed to delete vm-name: Required ‘Current principal doesn’t have permission to mutate this resource!’ permission for ‘vm-name’”