简体   繁体   中英

Unable to Migrate GCP Project

When I click on Move, I only see the current organization as the target.

I have the following roles (same principal email in source and target):

Source organization:

Billing Account Administrator
Organization Administrator
Owner
Project Creator
Project IAM Admin
Project Mover

Source Project:

Organization Administrator
Owner
Project IAM Admin
Project Mover

Target Organization:

Billing Account Administrator
Organization Administrator
Organization Policy Administrator
Owner
Project Creator
Project IAM Admin
Project Mover
 

roles/orgpolicy.policyAdmin enabled on both source and target organizations

constraints/resourcemanager.allowedExportDestinations in source organization is set to Enable All constraints/resourcemanager.allowedImportSources in target organization is set to Enable All

You can move a project between organization resources in the same organization.

Moving a project to a different organization requires Google Cloud Support to perform the move on your behalf. Google will move the projects out of the current organization. Those projects are now standalone (no parent organization). You will then move the standalone projects into the desired organization.

Kindly follow the steps to migrate the project to no organization. I have provided you with the link for better understanding Doc . Also, you can follow the below steps.

Now the project migration has become a self service, and to proceed with the migration below roles should be available. Refer documentation

The project resource that you want to move is the parent resource, and should have a project mover role.

Permission needed for resources that is moving “resourcemanager.projects.update” and permission required for a parent resource is “resourcemanager.projects.move”

On the destination side the following roles should be associated with user account,

If the destination resource is a folder then the role should be “resourcemanager.projects.move”

If the destination resource is a organization then the role should be “resourcemanager.projects.create”

Please find the documentation for your reference.

Since you mentioned that you have user id who has owner role which has both “resourcemanager.projects.move” and “resourcemanager.projects.create” permissions already, you can use below command to proceed with the organization movement,

gcloud beta projects move PROJECT_ID \ --organization ORGANIZATION_ID

This will resolve your issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM